aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2010-10-08 22:01:48 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2010-10-25 14:11:21 -0700
commit17c10d61c750619324ee2a46c5a9e03a435fe212 (patch)
tree46bceacae951391c9d80e0b20734a88f273eb360 /drivers/hwmon/coretemp.c
parentfd53d08465a79d742a297be1d7d173f8a13972a6 (diff)
downloadkernel_goldelico_gta04-17c10d61c750619324ee2a46c5a9e03a435fe212.zip
kernel_goldelico_gta04-17c10d61c750619324ee2a46c5a9e03a435fe212.tar.gz
kernel_goldelico_gta04-17c10d61c750619324ee2a46c5a9e03a435fe212.tar.bz2
hwmon: ({core, pkg, via-cpu}temp) remove unnecessary CONFIG_HOTPLUG_CPU ifdefs
CONFIG_HOTPLUG_CPU is used too much in some drivers. This patch clean them up. Signed-off-by: Chen Gong <gong.chen@linux.intel.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index b4aea20..467488c 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -566,9 +566,8 @@ exit:
static void __exit coretemp_exit(void)
{
struct pdev_entry *p, *n;
-#ifdef CONFIG_HOTPLUG_CPU
+
unregister_hotcpu_notifier(&coretemp_cpu_notifier);
-#endif
mutex_lock(&pdev_list_mutex);
list_for_each_entry_safe(p, n, &pdev_list, list) {
platform_device_unregister(p->pdev);