From: Satyam Sharma Date: Thu, 23 Aug 2007 03:44:25 +0000 (+0530) Subject: hwmon: (coretemp) Remove bogus __cpuinitdata etc cleanup X-Git-Tag: v2.6.24-rc1~1299^2~37 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=59a35bafb223bbb0553ba1a3bb9280bda668a8d8;p=linux-2.6-omap-h63xx.git 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 Acked-by: Rudolf Marek Signed-off-by: Mark M. Hoffman --- diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 7c1795225b0..f7b0ef41d9c 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -58,8 +58,6 @@ struct coretemp_data { u8 alarm; }; -static struct coretemp_data *coretemp_update_device(struct device *dev); - /* * Sysfs stuff */ @@ -350,7 +348,7 @@ static int coretemp_cpu_callback(struct notifier_block *nfb, return NOTIFY_OK; } -static struct notifier_block __cpuinitdata coretemp_cpu_notifier = { +static struct notifier_block coretemp_cpu_notifier = { .notifier_call = coretemp_cpu_callback, }; #endif /* !CONFIG_HOTPLUG_CPU */