Skip to content

Commit

Permalink
hwmon: (coretemp) Remove bogus __cpuinitdata etc cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Satyam Sharma authored and Mark M. Hoffman committed Oct 10, 2007
1 parent 84f1e44 commit 59a35ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ struct coretemp_data {
u8 alarm;
};

static struct coretemp_data *coretemp_update_device(struct device *dev);

/*
* Sysfs stuff
*/
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 59a35ba

Please sign in to comment.