Commit 59a35baf authored by Satyam Sharma's avatar Satyam Sharma Committed by Mark M. Hoffman

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: default avatarSatyam Sharma <satyam@infradead.org>
Acked-by: default avatarRudolf Marek <r.marek@assembler.cz>
Signed-off-by: default avatarMark M. Hoffman <mhoffman@lightlink.com>
parent 84f1e442
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment