]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cpufreq: s3c64xx: remove incorrect __init annotation
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Dec 2016 09:06:15 +0000 (10:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Dec 2016 01:54:18 +0000 (02:54 +0100)
commitadec57c61c2421d9d06c1fa8dd1ff7ed4fd2ca1b
tree888be8d7641ee94acda044ed238d8da639fda492
parent2a8fa123d9a1d2ca391eefc81fea747108a5081f
cpufreq: s3c64xx: remove incorrect __init annotation

s3c64xx_cpufreq_config_regulator is incorrectly annotated
as __init, since the caller is also not init:

WARNING: vmlinux.o(.text+0x92fe1c): Section mismatch in reference from the function s3c64xx_cpufreq_driver_init() to the function .init.text:s3c64xx_cpufreq_config_regulator()

With modern gcc versions, the function gets inline, so we don't
see the warning, this only happens with gcc-4.6 and older.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/s3c64xx-cpufreq.c