aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-15 22:44:31 +0100
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-03-19 00:02:55 +0100
commit15c6ea6f81328b0071cf63fb00b324199a9b8647 (patch)
treefc70ece10b50788f2e8903f982cdbb928fca1c25 /Documentation
parentrtc: m41t80: avoid out of range year values (diff)
downloadlinux-dev-15c6ea6f81328b0071cf63fb00b324199a9b8647.tar.xz
linux-dev-15c6ea6f81328b0071cf63fb00b324199a9b8647.zip
rtc: asm9260: remove incorrect __init/__exit annotations
The probe and remove callbacks of the platform driver are marked __init and __exit, respectively. However, this is not a correct way to annotate them, as it will result in those sections to be discarded at link time or after boot, while we can actually call them again based on manual unbinding, or deferred probing. Kbuild warns about the problem: WARNING: drivers/rtc/rtc-asm9260.o(.data+0x0): Section mismatch in reference from the variable asm9260_rtc_driver to the function .init.text:asm9260_rtc_probe() This removes the annotations, so we no longer branch into missing code and avoid the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 125e550fd257 ("rtc: add Alphascale asm9260 driver") Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions