OSDN Git Service

cpufreq: sparc: Don't mark cpufreq callbacks with __init
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 12 Jul 2023 03:58:43 +0000 (09:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Jul 2023 10:45:18 +0000 (12:45 +0200)
commitbfb5ef2219b7b28a6e328860438eb55027807289
treed409f0ebeeed10e5f0cb9910bc68e28b87fdbd05
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
cpufreq: sparc: Don't mark cpufreq callbacks with __init

These callbacks can be called again by the cpufreq core after the driver
is initialized and must be kept around. We currently get section
mismatch build warnings.

Don't mark them with __init.

Fixes: dcfce7c2cee4 ("cpufreq: sparc: Don't allocate cpufreq_driver dynamically")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c