summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri@ti.com>2012-10-05 19:08:04 -0500
committerAndy Green <andy.green@linaro.org>2012-11-27 11:42:50 +0800
commita8031141fff7a32b411d021961bb782336340a3d (patch)
treefbcc7949a3de45c26ba47974e052cc3b61ab1d56
parent33e0f23e851f7fdc2ba633df87fe54de62c7ace1 (diff)
OMAPDSS: HDMI: Uninit display if unable to register device
The display must be uninit'ed in order to free the requested GPIOs. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
-rw-r--r--drivers/video/omap2/dss/hdmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 9d0fe4690c3..0d879e0a444 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -1217,6 +1217,7 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev)
r = dss_add_device(dssdev);
if (r) {
DSSERR("device %s register failed: %d\n", dssdev->name, r);
+ hdmi_uninit_display(dssdev);
dss_put_device(dssdev);
return;
}