ARM: at91: pm: Mark at91_pm_secure_init as __init
authorFabio Estevam <festevam@denx.de>
Wed, 22 Jun 2022 11:48:10 +0000 (08:48 -0300)
committerClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 28 Jun 2022 09:55:32 +0000 (12:55 +0300)
commit91d60e259c0f58c855f88f3fe5b7909aec563525
tree87906313a82a14d15e64c0911b5fbd8c1924db4a
parent35074df65a8d8c5328a83e2eea948f7bbc8e6e08
ARM: at91: pm: Mark at91_pm_secure_init as __init

at91_pm_secure_init() is used inside sama5d2_pm_init(), which has
the __init notation.

Pass the __init notation to at91_pm_secure_init() as well to fix the
following section mismatch warning:

WARNING: modpost: vmlinux.o(.text.unlikely+0x2138): Section mismatch in reference from the function at91_pm_secure_init() to the (unknown reference) .init.rodata:(unknown)

Fixes: f2f5cf78a333 ("ARM: at91: pm: add support for sama5d2 secure suspend")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220622114810.1186330-1-festevam@gmail.com
arch/arm/mach-at91/pm.c