[PATCH 6/6] clk: en7523: populate SCU child devices
From: John Crispin
Date: Tue Nov 24 2026 - 05:12:53 EST
The AN7583 and AN7589 MDIO controllers live in the SCU register space
and are described as children of the clock controller node, taking the
SCU regmap from their parent. Nothing creates their platform devices.
Populate the children once the clock and reset providers are
registered, since the children consume both. SoCs without children are
unaffected.
Signed-off-by: John Crispin <john@xxxxxxxxxxx>
---
drivers/clk/clk-en7523.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/clk-en7523.c b/drivers/clk/clk-en7523.c
index 800de9a48594..bdc5b378d1a4 100644
--- a/drivers/clk/clk-en7523.c
+++ b/drivers/clk/clk-en7523.c
@@ -5,6 +5,7 @@
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
+#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/phy.h>
#include <linux/phy/phy.h>
@@ -1822,7 +1823,11 @@ static int en7523_clk_probe(struct platform_device *pdev)
if (r)
return r;
- return of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
+ r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data);
+ if (r)
+ return r;
+
+ return devm_of_platform_populate(&pdev->dev);
}
static const struct en_clk_soc_data en7523_data = {
--
2.34.1