Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bus: ti-sysc: Handle simple-bus for nested children

Otherwise child devices that some interconnect target module devices
have won't probe using simple-bus.

Signed-off-by: Tony Lindgren <tony@atomide.com>

+7 -2
+7 -2
drivers/bus/ti-sysc.c
··· 1314 1314 pm_runtime_put_sync(ddata->dev); 1315 1315 } 1316 1316 1317 + static const struct of_device_id sysc_match_table[] = { 1318 + { .compatible = "simple-bus", }, 1319 + { /* sentinel */ }, 1320 + }; 1321 + 1317 1322 static int sysc_probe(struct platform_device *pdev) 1318 1323 { 1319 1324 struct ti_sysc_platform_data *pdata = dev_get_platdata(&pdev->dev); ··· 1380 1375 sysc_show_registers(ddata); 1381 1376 1382 1377 ddata->dev->type = &sysc_device_type; 1383 - error = of_platform_populate(ddata->dev->of_node, 1384 - NULL, pdata ? pdata->auxdata : NULL, 1378 + error = of_platform_populate(ddata->dev->of_node, sysc_match_table, 1379 + pdata ? pdata->auxdata : NULL, 1385 1380 ddata->dev); 1386 1381 if (error) 1387 1382 goto err;