mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
drm/tegra: hub: Register child devices
In order to remove the dependency on the simple-bus compatible string, which causes the OF driver core to register all child devices, make the display-hub driver explicitly register the display controller children. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
ca2030d56b
commit
a101e3dad8
@ -948,6 +948,15 @@ static int tegra_display_hub_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "failed to register host1x client: %d\n",
|
||||
err);
|
||||
|
||||
err = devm_of_platform_populate(&pdev->dev);
|
||||
if (err < 0)
|
||||
goto unregister;
|
||||
|
||||
return err;
|
||||
|
||||
unregister:
|
||||
host1x_client_unregister(&hub->client);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user