Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (coretemp) Remove bogus __cpuinitdata etc cleanup

The CPU hotplug notifier_block coretemp_cpu_notifier is already defined
inside an #ifdef HOTPLUG_CPU, therefore marking it as __cpuinitdata is
quite a pointless thing to do.

Also, remove duplicate prototype of function coretemp_update_device()
at the top of this file (another one already exists barely 10 lines
above this one :-)

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>

authored by

Satyam Sharma and committed by
Mark M. Hoffman
59a35baf 84f1e442

+1 -3
+1 -3
drivers/hwmon/coretemp.c
··· 58 58 u8 alarm; 59 59 }; 60 60 61 - static struct coretemp_data *coretemp_update_device(struct device *dev); 62 - 63 61 /* 64 62 * Sysfs stuff 65 63 */ ··· 348 350 return NOTIFY_OK; 349 351 } 350 352 351 - static struct notifier_block __cpuinitdata coretemp_cpu_notifier = { 353 + static struct notifier_block coretemp_cpu_notifier = { 352 354 .notifier_call = coretemp_cpu_callback, 353 355 }; 354 356 #endif /* !CONFIG_HOTPLUG_CPU */