Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <treding@nvidia.com>

+6
+6
drivers/gpu/host1x/dev.c
··· 470 470 if (err < 0) 471 471 goto deinit_debugfs; 472 472 473 + err = devm_of_platform_populate(&pdev->dev); 474 + if (err < 0) 475 + goto unregister; 476 + 473 477 return 0; 474 478 479 + unregister: 480 + host1x_unregister(host); 475 481 deinit_debugfs: 476 482 host1x_debug_deinit(host); 477 483 host1x_intr_deinit(host);