Skip to content

Commit a101e3d

Browse files
committed
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 <[email protected]>
1 parent ca2030d commit a101e3d

File tree

1 file changed

+9
-0
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+9
-0
lines changed

drivers/gpu/drm/tegra/hub.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,15 @@ static int tegra_display_hub_probe(struct platform_device *pdev)
948948
dev_err(&pdev->dev, "failed to register host1x client: %d\n",
949949
err);
950950

951+
err = devm_of_platform_populate(&pdev->dev);
952+
if (err < 0)
953+
goto unregister;
954+
955+
return err;
956+
957+
unregister:
958+
host1x_client_unregister(&hub->client);
959+
pm_runtime_disable(&pdev->dev);
951960
return err;
952961
}
953962

0 commit comments

Comments
 (0)