summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-08-21 10:21:01 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2024-09-05 14:30:18 +0200
commita5a670df1db79f4bb462601aa4cc03caffa761a2 (patch)
treecb0a1a4e70824770b67c5e3a1d3a906fe37e7ad7
parentpowerpc: Stop using no_llseek (diff)
downloadlinux-a5a670df1db79f4bb462601aa4cc03caffa761a2.tar.xz
linux-a5a670df1db79f4bb462601aa4cc03caffa761a2.zip
macintosh/via-pmu: register_pmu_pm_ops() can be __init
register_pmu_pm_ops() is only called at init time, via device_initcall(), so can be marked __init. The driver can't be built as a module. Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240821082101.877438-1-mpe@ellerman.id.au
-rw-r--r--drivers/macintosh/via-pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index 9d5703b60937..b0f09c70f1ff 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c
@@ -2334,7 +2334,7 @@ static const struct platform_suspend_ops pmu_pm_ops = {
.valid = pmu_sleep_valid,
};
-static int register_pmu_pm_ops(void)
+static int __init register_pmu_pm_ops(void)
{
if (pmu_kind == PMU_OHARE_BASED)
powerbook_sleep_init_3400();