Commit ca2030d5 authored by Thierry Reding's avatar Thierry Reding

gpu: host1x: 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
host1x driver explicitly register its children.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent ef4e417e
...@@ -470,8 +470,14 @@ static int host1x_probe(struct platform_device *pdev) ...@@ -470,8 +470,14 @@ static int host1x_probe(struct platform_device *pdev)
if (err < 0) if (err < 0)
goto deinit_debugfs; goto deinit_debugfs;
err = devm_of_platform_populate(&pdev->dev);
if (err < 0)
goto unregister;
return 0; return 0;
unregister:
host1x_unregister(host);
deinit_debugfs: deinit_debugfs:
host1x_debug_deinit(host); host1x_debug_deinit(host);
host1x_intr_deinit(host); host1x_intr_deinit(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment