[PATCH 02/12] soc: ep93xx: Use devm_soc_device_register() helper

From: Andrew Davis

Date: Wed Nov 11 2026 - 13:05:34 EST


Use the device lifecycle managed register function. This helps prevent
mistakes like unregistering out of order in cleanup functions and
forgetting to unregister on error paths.

Signed-off-by: Andrew Davis <afd@xxxxxx>
---
drivers/soc/cirrus/soc-ep93xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/cirrus/soc-ep93xx.c b/drivers/soc/cirrus/soc-ep93xx.c
index 5f6820925040c..2352bb76b6383 100644
--- a/drivers/soc/cirrus/soc-ep93xx.c
+++ b/drivers/soc/cirrus/soc-ep93xx.c
@@ -199,7 +199,7 @@ static int __init ep93xx_syscon_probe(struct platform_device *pdev)
attrs->family = "Cirrus Logic EP93xx";
attrs->revision = ep93xx_get_soc_rev(rev);

- soc_dev = soc_device_register(attrs);
+ soc_dev = devm_soc_device_register(dev, attrs);
if (IS_ERR(soc_dev))
return PTR_ERR(soc_dev);

--
2.43.0