Browse Source

x86/hwmon: {core, pkg, via}cpu_temp_device_remove() can all be __cpuinit

... 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>
Jan Beulich 14 năm trước cách đây
mục cha
commit
a5f42a6bc5
3 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      drivers/hwmon/coretemp.c
  2. 1 1
      drivers/hwmon/pkgtemp.c
  3. 1 1
      drivers/hwmon/via-cputemp.c

+ 1 - 1
drivers/hwmon/coretemp.c

@@ -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;

+ 1 - 1
drivers/hwmon/pkgtemp.c

@@ -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;

+ 1 - 1
drivers/hwmon/via-cputemp.c

@@ -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);