[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240729123538.175704-6-afd@ti.com>
Date: Mon, 29 Jul 2024 07:35:36 -0500
From: Andrew Davis <afd@...com>
To: Andre Przywara <andre.przywara@....com>,
Russell King
<linux@...linux.org.uk>, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer
<s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, Andrew Lunn <andrew@...n.ch>,
Sebastian
Hesselbarth <sebastian.hesselbarth@...il.com>,
Gregory Clement
<gregory.clement@...tlin.com>,
Daniel Mack <daniel@...que.org>,
Haojian
Zhuang <haojian.zhuang@...il.com>,
Robert Jarzmik <robert.jarzmik@...e.fr>
CC: <linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
<imx@...ts.linux.dev>, Andrew Davis <afd@...com>
Subject: [PATCH v2 5/7] ARM: sa1100: 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 <afd@...com>
---
arch/arm/mach-sa1100/generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c
index 0c586047d130f..5383a26f51169 100644
--- a/arch/arm/mach-sa1100/generic.c
+++ b/arch/arm/mach-sa1100/generic.c
@@ -298,7 +298,7 @@ static struct platform_device *sa11x0_devices[] __initdata = {
static int __init sa1100_init(void)
{
struct resource wdt_res = DEFINE_RES_MEM(0x90000000, 0x20);
- pm_power_off = sa1100_power_off;
+ register_platform_power_off(sa1100_power_off);
regulator_has_full_constraints();
--
2.39.2
Powered by blists - more mailing lists