Commit cbed7545 authored by Tony Lindgren's avatar Tony Lindgren Committed by Tomi Valkeinen

drm/omap: dsi: Fix missing of_platform_depopulate()

We're missing a call to of_platform_depopulate() on errors for dsi.
Looks like dss is already doing this.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106152802.38599-1-tony@atomide.com
parent 24ec84e8
...@@ -5429,15 +5429,19 @@ static int dsi_probe(struct platform_device *pdev) ...@@ -5429,15 +5429,19 @@ static int dsi_probe(struct platform_device *pdev)
} }
r = of_platform_populate(dev->of_node, NULL, NULL, dev); r = of_platform_populate(dev->of_node, NULL, NULL, dev);
if (r) if (r) {
DSSERR("Failed to populate DSI child devices: %d\n", r); DSSERR("Failed to populate DSI child devices: %d\n", r);
goto err_uninit_output;
}
r = component_add(&pdev->dev, &dsi_component_ops); r = component_add(&pdev->dev, &dsi_component_ops);
if (r) if (r)
goto err_uninit_output; goto err_of_depopulate;
return 0; return 0;
err_of_depopulate:
of_platform_depopulate(dev);
err_uninit_output: err_uninit_output:
dsi_uninit_output(dsi); dsi_uninit_output(dsi);
err_pm_disable: err_pm_disable:
......
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