Skip to content

Commit cfd6d63

Browse files
geerturafaeljw
authored andcommitted
m68k: virt: Switch to new sys-off handler API
On m68k with CONFIG_VIRT=y (e.g. virt_defconfig or allmodconfig): arch/m68k/virt/config.c: In function ‘config_virt’: arch/m68k/virt/config.c:129:2: error: ‘mach_power_off’ undeclared (first use in this function); did you mean ‘pm_power_off’? 129 | mach_power_off = virt_halt; | ^~~~~~~~~~~~~~ | pm_power_off Commit 05d51e4 ("m68k: Introduce a virtual m68k machine") introduced a new user of mach_power_off. Convert it to the new sys-off handler API, too. Reported-by: [email protected] Fixes: f0f7e52 ("m68k: Switch to new sys-off handler API") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 14c03a4 commit cfd6d63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/m68k/virt/config.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3+
#include <linux/reboot.h>
34
#include <linux/serial_core.h>
45
#include <clocksource/timer-goldfish.h>
56

@@ -126,5 +127,6 @@ void __init config_virt(void)
126127
mach_get_model = virt_get_model;
127128
mach_reset = virt_reset;
128129
mach_halt = virt_halt;
129-
mach_power_off = virt_halt;
130+
131+
register_platform_power_off(virt_halt);
130132
}

0 commit comments

Comments
 (0)