mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
drm/omap: dss: Gather OMAP DSS components at probe time
The omapdss_gather_components() function walks the OF graph to create a list of all components part of the display device. There's no need to delay this operation until DSS bind time as we have all the information we need at probe time. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
36c61ae2b7
commit
f13e97cf3e
1 changed files with 2 additions and 1 deletions
|
@ -1323,7 +1323,6 @@ static int dss_bind(struct device *dev)
|
||||||
|
|
||||||
pm_set_vt_switch(0);
|
pm_set_vt_switch(0);
|
||||||
|
|
||||||
omapdss_gather_components(dev);
|
|
||||||
omapdss_set_dss(dss);
|
omapdss_set_dss(dss);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1474,6 +1473,8 @@ static int dss_probe(struct platform_device *pdev)
|
||||||
dss);
|
dss);
|
||||||
|
|
||||||
/* Add all the child devices as components. */
|
/* Add all the child devices as components. */
|
||||||
|
omapdss_gather_components(&pdev->dev);
|
||||||
|
|
||||||
device_for_each_child(&pdev->dev, &match, dss_add_child_component);
|
device_for_each_child(&pdev->dev, &match, dss_add_child_component);
|
||||||
|
|
||||||
r = component_master_add_with_match(&pdev->dev, &dss_component_ops, match);
|
r = component_master_add_with_match(&pdev->dev, &dss_component_ops, match);
|
||||||
|
|
Loading…
Reference in a new issue