[CPUFREQ] fix section mismatch warnings
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 12:22:52 +0000 (13:22 +0100)
committerDave Jones <davej@redhat.com>
Wed, 5 Mar 2008 19:45:31 +0000 (14:45 -0500)
commitf6ebef30e21638417f8f5443ba393d63a0c27e2b
tree2d148d36edb829a2f1d05a69aaeec38c0d4886d7
parent0e5aa8d6218f9914b23e492debf653bda5598af3
[CPUFREQ] fix section mismatch warnings

Fix the following warnings:
WARNING: vmlinux.o(.text+0xfe6711): Section mismatch in reference from the function cpufreq_unregister_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
WARNING: vmlinux.o(.text+0xfe68af): Section mismatch in reference from the function cpufreq_register_driver() to the variable .cpuinit.data:cpufreq_cpu_notifier
WARNING: vmlinux.o(.exit.text+0xc4fa): Section mismatch in reference from the function cpufreq_stats_exit() to the variable .cpuinit.data:cpufreq_stat_cpu_notifier

The warnings were casued by references to unregister_hotcpu_notifier()
from normal functions or exit functions.
This is flagged by modpost as a potential error because
it does not know that for the non HOTPLUG_CPU
scenario the unregister_hotcpu_notifier() is a nop.
Silence the warning by replacing the __initdata
annotation with a __refdata annotation.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_stats.c