diff options
author | Thierry Reding <treding@nvidia.com> | 2020-06-12 17:01:00 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-06-16 13:46:19 +0200 |
commit | a101e3dad8a90a840ccb45e492cd2ef7c01199ea (patch) | |
tree | 5767826f836c951c0def6ff29448eab4d1932999 /drivers/gpu | |
parent | ca2030d56bb7b73079f834b10de38ced9cac74a3 (diff) | |
download | linux-a101e3dad8a90a840ccb45e492cd2ef7c01199ea.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tegra/hub.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index a2ef8f218d4e..22a03f7ffdc1 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -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; } |