diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dsi.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dsi.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 0a485c5b982e..00a9c2ab9e6c 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c | |||
@@ -5418,9 +5418,15 @@ static int dsi_probe(struct platform_device *pdev) | |||
5418 | dsi->num_lanes_supported = 3; | 5418 | dsi->num_lanes_supported = 3; |
5419 | } | 5419 | } |
5420 | 5420 | ||
5421 | r = of_platform_populate(dev->of_node, NULL, NULL, dev); | ||
5422 | if (r) { | ||
5423 | DSSERR("Failed to populate DSI child devices: %d\n", r); | ||
5424 | goto err_pm_disable; | ||
5425 | } | ||
5426 | |||
5421 | r = dsi_init_output(dsi); | 5427 | r = dsi_init_output(dsi); |
5422 | if (r) | 5428 | if (r) |
5423 | goto err_pm_disable; | 5429 | goto err_of_depopulate; |
5424 | 5430 | ||
5425 | r = dsi_probe_of(dsi); | 5431 | r = dsi_probe_of(dsi); |
5426 | if (r) { | 5432 | if (r) { |
@@ -5428,22 +5434,16 @@ static int dsi_probe(struct platform_device *pdev) | |||
5428 | goto err_uninit_output; | 5434 | goto err_uninit_output; |
5429 | } | 5435 | } |
5430 | 5436 | ||
5431 | r = of_platform_populate(dev->of_node, NULL, NULL, dev); | ||
5432 | if (r) { | ||
5433 | DSSERR("Failed to populate DSI child devices: %d\n", r); | ||
5434 | goto err_uninit_output; | ||
5435 | } | ||
5436 | |||
5437 | r = component_add(&pdev->dev, &dsi_component_ops); | 5437 | r = component_add(&pdev->dev, &dsi_component_ops); |
5438 | if (r) | 5438 | if (r) |
5439 | goto err_of_depopulate; | 5439 | goto err_uninit_output; |
5440 | 5440 | ||
5441 | return 0; | 5441 | return 0; |
5442 | 5442 | ||
5443 | err_of_depopulate: | ||
5444 | of_platform_depopulate(dev); | ||
5445 | err_uninit_output: | 5443 | err_uninit_output: |
5446 | dsi_uninit_output(dsi); | 5444 | dsi_uninit_output(dsi); |
5445 | err_of_depopulate: | ||
5446 | of_platform_depopulate(dev); | ||
5447 | err_pm_disable: | 5447 | err_pm_disable: |
5448 | pm_runtime_disable(dev); | 5448 | pm_runtime_disable(dev); |
5449 | return r; | 5449 | return r; |