diff options
author | Andrew Davis <[email protected]> | 2024-07-29 07:35:34 -0500 |
---|---|---|
committer | Gregory CLEMENT <[email protected]> | 2024-09-02 14:42:52 +0200 |
commit | 4bf23b964ba0022f9cfd6be12fbe2f8a6b4e6ce6 (patch) | |
tree | b0e662da34d2e63bc7a2ed869e80940b42621f81 /arch/arm/mach-orion5x/ts409-setup.c | |
parent | 499243b4058073e60cff0d66a023a16ac6bd9d3f (diff) |
ARM: orion5x: Switch to new sys-off handler API
Kernel now supports chained power-off handlers. Use
register_platform_power_off() that registers a platform level power-off
handler. Legacy pm_power_off() will be removed once all drivers and archs
are converted to the new sys-off API.
Signed-off-by: Andrew Davis <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Gregory CLEMENT <[email protected]>
Diffstat (limited to 'arch/arm/mach-orion5x/ts409-setup.c')
-rw-r--r-- | arch/arm/mach-orion5x/ts409-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/ts409-setup.c b/arch/arm/mach-orion5x/ts409-setup.c index 8131982c10d9..725688aa5cba 100644 --- a/arch/arm/mach-orion5x/ts409-setup.c +++ b/arch/arm/mach-orion5x/ts409-setup.c @@ -312,7 +312,7 @@ static void __init qnap_ts409_init(void) platform_device_register(&ts409_leds); /* register tsx09 specific power-off method */ - pm_power_off = qnap_tsx09_power_off; + register_platform_power_off(qnap_tsx09_power_off); } MACHINE_START(TS409, "QNAP TS-409") |