x86/hwmon: {core, pkg, via}cpu_temp_device_remove() can all be __cpuinit
Jan Beulich [Fri, 24 Sep 2010 05:31:10 +0000 (22:31 -0700)]
... as they're being called only from a __cpuinit function.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

drivers/hwmon/coretemp.c
drivers/hwmon/pkgtemp.c
drivers/hwmon/via-cputemp.c

index a23b17a..f34fe83 100644 (file)
@@ -490,7 +490,7 @@ exit:
        return err;
 }
 
-static void coretemp_device_remove(unsigned int cpu)
+static void __cpuinit coretemp_device_remove(unsigned int cpu)
 {
        struct pdev_entry *p;
        unsigned int i;
index f119039..db5352c 100644 (file)
@@ -340,7 +340,7 @@ exit:
 }
 
 #ifdef CONFIG_HOTPLUG_CPU
-static void pkgtemp_device_remove(unsigned int cpu)
+static void __cpuinit pkgtemp_device_remove(unsigned int cpu)
 {
        struct pdev_entry *p;
        unsigned int i;
index ffb793a..497bd23 100644 (file)
@@ -238,7 +238,7 @@ exit:
 }
 
 #ifdef CONFIG_HOTPLUG_CPU
-static void via_cputemp_device_remove(unsigned int cpu)
+static void __cpuinit via_cputemp_device_remove(unsigned int cpu)
 {
        struct pdev_entry *p, *n;
        mutex_lock(&pdev_list_mutex);