OMAPDSS: HDMI: Uninit display on device add error
authorRicardo Neri <ricardo.neri@ti.com>
Tue, 6 Nov 2012 06:19:15 +0000 (00:19 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 6 Nov 2012 11:33:36 +0000 (13:33 +0200)
The display must be uninitialized in order to free the requested GPIOs.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/hdmi.c

index 31cedbb9f9fd8e5edc4690d406074bf5d9d49128..edc28842b9fdb5cb4c937e3919c5bd89937d7e04 100644 (file)
@@ -1025,6 +1025,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;
        }