Skip to content

Commit ca2030d

Browse files
committed
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: Thierry Reding <[email protected]>
1 parent ef4e417 commit ca2030d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/host1x/dev.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,14 @@ static int host1x_probe(struct platform_device *pdev)
470470
if (err < 0)
471471
goto deinit_debugfs;
472472

473+
err = devm_of_platform_populate(&pdev->dev);
474+
if (err < 0)
475+
goto unregister;
476+
473477
return 0;
474478

479+
unregister:
480+
host1x_unregister(host);
475481
deinit_debugfs:
476482
host1x_debug_deinit(host);
477483
host1x_intr_deinit(host);

0 commit comments

Comments
 (0)