hwmon: (coretemp) fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 12:22:51 +0000 (13:22 +0100)
committerMark M. Hoffman <mhoffman@lightlink.com>
Sun, 17 Feb 2008 16:26:55 +0000 (11:26 -0500)
commitba7c1927aa69c4dfe1ecf646f03b306e49dc8e37
tree4a5847a80a19336548a1dca0ce754d9c5afb9592
parent6369a2887a1b35fde91573adc650528e3efea8e9
hwmon: (coretemp) fix section mismatch warning

Fix following warning:
WARNING: vmlinux.o(.text+0xebfd04): Section mismatch in reference from the function coretemp_cpu_callback() to the function .cpuinit.text:coretemp_device_add()

coretemp_cpu_callback() are only used inside a
HOTPLUG_CPU block so annotate it __cpuinit.
The notifier referencing the function are annotated
__refdata to silence warning from the exit function.
The unregister function do not use the embedded pointer
but clears the variable so the annotation is OK.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/coretemp.c