Skip to content

Commit a5a670d

Browse files
committed
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
1 parent 5b4bc44 commit a5a670d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ static const struct platform_suspend_ops pmu_pm_ops = {
23342334
.valid = pmu_sleep_valid,
23352335
};
23362336

2337-
static int register_pmu_pm_ops(void)
2337+
static int __init register_pmu_pm_ops(void)
23382338
{
23392339
if (pmu_kind == PMU_OHARE_BASED)
23402340
powerbook_sleep_init_3400();

0 commit comments

Comments
 (0)