aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/coretemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 52914e95e9dc..cbd047eac5b4 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -356,7 +356,7 @@ static void coretemp_device_remove(unsigned int cpu)
356 mutex_unlock(&pdev_list_mutex); 356 mutex_unlock(&pdev_list_mutex);
357} 357}
358 358
359static int coretemp_cpu_callback(struct notifier_block *nfb, 359static int __cpuinit coretemp_cpu_callback(struct notifier_block *nfb,
360 unsigned long action, void *hcpu) 360 unsigned long action, void *hcpu)
361{ 361{
362 unsigned int cpu = (unsigned long) hcpu; 362 unsigned int cpu = (unsigned long) hcpu;
@@ -373,7 +373,7 @@ static int coretemp_cpu_callback(struct notifier_block *nfb,
373 return NOTIFY_OK; 373 return NOTIFY_OK;
374} 374}
375 375
376static struct notifier_block coretemp_cpu_notifier = { 376static struct notifier_block coretemp_cpu_notifier __refdata = {
377 .notifier_call = coretemp_cpu_callback, 377 .notifier_call = coretemp_cpu_callback,
378}; 378};
379#endif /* !CONFIG_HOTPLUG_CPU */ 379#endif /* !CONFIG_HOTPLUG_CPU */