Skip to content

Commit 91d60e2

Browse files
Fabio Estevamclaudiubeznea
authored andcommitted
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: f2f5cf7 ("ARM: at91: pm: add support for sama5d2 secure suspend") Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 35074df commit 91d60e2

File tree

1 file changed

+1
-1
lines changed
  • arch/arm/mach-at91

1 file changed

+1
-1
lines changed

arch/arm/mach-at91/pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ static int __init at91_pm_backup_init(void)
10791079
return ret;
10801080
}
10811081

1082-
static void at91_pm_secure_init(void)
1082+
static void __init at91_pm_secure_init(void)
10831083
{
10841084
int suspend_mode;
10851085
struct arm_smccc_res res;

0 commit comments

Comments
 (0)