diff mbox series

[1/6] ARM: highbank: Switch to new sys-off handler API

Message ID 20240610125924.86003-1-afd@ti.com (mailing list archive)
State New
Headers show
Series [1/6] ARM: highbank: Switch to new sys-off handler API | expand

Commit Message

Andrew Davis June 10, 2024, 12:59 p.m. UTC
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 <afd@ti.com>
---
 arch/arm/mach-highbank/highbank.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andre Przywara June 10, 2024, 3:10 p.m. UTC | #1
Hi,

On 10/06/2024 13:59, Andrew Davis wrote:
> 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 <afd@ti.com>

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Thanks,
Andre

> ---
>   arch/arm/mach-highbank/highbank.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
> index 5d4f977ac7d2a..47335c7dadf8d 100644
> --- a/arch/arm/mach-highbank/highbank.c
> +++ b/arch/arm/mach-highbank/highbank.c
> @@ -143,7 +143,7 @@ static void __init highbank_init(void)
>   	sregs_base = of_iomap(np, 0);
>   	WARN_ON(!sregs_base);
>   
> -	pm_power_off = highbank_power_off;
> +	register_platform_power_off(highbank_power_off);
>   	highbank_pm_init();
>   
>   	bus_register_notifier(&platform_bus_type, &highbank_platform_nb);
diff mbox series

Patch

diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 5d4f977ac7d2a..47335c7dadf8d 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -143,7 +143,7 @@  static void __init highbank_init(void)
 	sregs_base = of_iomap(np, 0);
 	WARN_ON(!sregs_base);
 
-	pm_power_off = highbank_power_off;
+	register_platform_power_off(highbank_power_off);
 	highbank_pm_init();
 
 	bus_register_notifier(&platform_bus_type, &highbank_platform_nb);