power: reset: at91: Drop '__init' from at91_wakeup_status()
authorNathan Chancellor <nathan@kernel.org>
Mon, 20 Nov 2023 22:35:32 +0000 (15:35 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 24 Dec 2023 22:43:10 +0000 (23:43 +0100)
commit195c3167865454ea909d717557c8585ccfe1b2a3
tree94de71a095e107ee46c53fbcc95268f052ae3f06
parent3cbbe1be0e3bd4cac5502eb141dd257ab34a4460
power: reset: at91: Drop '__init' from at91_wakeup_status()

When building with clang, there are two section mismatch warnings:

  WARNING: modpost: vmlinux: section mismatch in reference: at91_poweroff_probe+0x7c (section: .text) -> at91_wakeup_status (section: .init.text)
  WARNING: modpost: vmlinux: section mismatch in reference: at91_shdwc_probe+0xcc (section: .text) -> at91_wakeup_status (section: .init.text)

Drop '__init' from at91_wakeup_status() to clear up the mismatch.

Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()")
Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_platform_driver_probe()")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-poweroff.c
drivers/power/reset/at91-sama5d2_shdwc.c