summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-17 11:50:07 +0200
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-18 13:19:45 +0200
commitc121b15244c53637c3e9ca608b8816abcfbe2f8e (patch)
tree9747a1c28fb9ab9950fb2c77adbd5c84a50adf71
parente020f9af6d8311cd935217219f49175e161be100 (diff)
OMAP: DSS2: fix driver probe error handling
If driver's probe failed, the uninit was not called. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
-rw-r--r--drivers/video/omap2/dss/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index 967cbda1fd7..39b1a20a298 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -778,6 +778,7 @@ static int dss_driver_probe(struct device *dev)
if (r) {
DSSERR("driver probe failed: %d\n", r);
+ dss_uninit_device(core.pdev, dssdev);
return r;
}