From: Andrew Morton Date: Tue, 10 Aug 2010 00:21:11 +0000 (-0700) Subject: drivers/hwmon/coretemp.c: remove unneeded #ifdef CONFIG_HOTPLUG_CPU X-Git-Tag: upstream/snapshot3+hdmi~13536 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b8e8282611ea35845dcff0cb321a7d735fc3155;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drivers/hwmon/coretemp.c: remove unneeded #ifdef CONFIG_HOTPLUG_CPU register_hotcpu_notifier() is designed to make these ifdefs unnecessary. Cc: Chen Gong Cc: Rudolf Marek Cc: Huaxu Wan Cc: Jean Delvare Cc: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 49d74d0..a92e28a 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -480,7 +480,6 @@ exit: return err; } -#ifdef CONFIG_HOTPLUG_CPU static void coretemp_device_remove(unsigned int cpu) { struct pdev_entry *p, *n; @@ -518,7 +517,6 @@ static int __cpuinit coretemp_cpu_callback(struct notifier_block *nfb, static struct notifier_block coretemp_cpu_notifier __refdata = { .notifier_call = coretemp_cpu_callback, }; -#endif /* !CONFIG_HOTPLUG_CPU */ static int __init coretemp_init(void) { @@ -552,9 +550,7 @@ static int __init coretemp_init(void) goto exit_driver_unreg; } -#ifdef CONFIG_HOTPLUG_CPU register_hotcpu_notifier(&coretemp_cpu_notifier); -#endif return 0; exit_driver_unreg: