Skip to content

Commit 195c316

Browse files
nathanchancesre
authored andcommitted
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: dde74a5 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()") Fixes: 099806d ("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>
1 parent 3cbbe1b commit 195c316

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/power/reset/at91-poweroff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static struct shdwc {
5757
void __iomem *mpddrc_base;
5858
} at91_shdwc;
5959

60-
static void __init at91_wakeup_status(struct platform_device *pdev)
60+
static void at91_wakeup_status(struct platform_device *pdev)
6161
{
6262
const char *reason;
6363
u32 reg = readl(at91_shdwc.shdwc_base + AT91_SHDW_SR);

drivers/power/reset/at91-sama5d2_shdwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static const unsigned long long sdwc_dbc_period[] = {
107107
0, 3, 32, 512, 4096, 32768,
108108
};
109109

110-
static void __init at91_wakeup_status(struct platform_device *pdev)
110+
static void at91_wakeup_status(struct platform_device *pdev)
111111
{
112112
struct shdwc *shdw = platform_get_drvdata(pdev);
113113
const struct reg_config *rcfg = shdw->rcfg;

0 commit comments

Comments
 (0)