]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
bus: ti-sysc: Handle simple-bus for nested children
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:24:54 +0000 (10:24 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2018 19:04:51 +0000 (12:04 -0700)
Otherwise child devices that some interconnect target module devices
have won't probe using simple-bus.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c

index 7cd2fd04b212de5b7228c8d5a68e5432069c0a5a..25c0e4ae9f1d7374439d4c9324b1f020eb58e6d6 100644 (file)
@@ -1314,6 +1314,11 @@ static void ti_sysc_idle(struct work_struct *work)
                pm_runtime_put_sync(ddata->dev);
 }
 
+static const struct of_device_id sysc_match_table[] = {
+       { .compatible = "simple-bus", },
+       { /* sentinel */ },
+};
+
 static int sysc_probe(struct platform_device *pdev)
 {
        struct ti_sysc_platform_data *pdata = dev_get_platdata(&pdev->dev);
@@ -1375,8 +1380,8 @@ static int sysc_probe(struct platform_device *pdev)
        sysc_show_registers(ddata);
 
        ddata->dev->type = &sysc_device_type;
-       error = of_platform_populate(ddata->dev->of_node,
-                                    NULL, pdata ? pdata->auxdata : NULL,
+       error = of_platform_populate(ddata->dev->of_node, sysc_match_table,
+                                    pdata ? pdata->auxdata : NULL,
                                     ddata->dev);
        if (error)
                goto err;