Commit a5a670df authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240821082101.877438-1-mpe@ellerman.id.au
parent 5b4bc44a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();