Skip to content

Commit

Permalink
x86/hwmon: {core, pkg, via}cpu_temp_device_remove() can all be __cpuinit
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Jan Beulich authored and Guenter Roeck committed Oct 25, 2010
1 parent 72e5806 commit a5f42a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static int __cpuinit coretemp_device_add(unsigned int cpu)
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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/pkgtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int __cpuinit pkgtemp_device_add(unsigned int cpu)
}

#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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/via-cputemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static int __cpuinit via_cputemp_device_add(unsigned int cpu)
}

#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);
Expand Down

0 comments on commit a5f42a6

Please sign in to comment.