From: Tomi Valkeinen Date: Wed, 17 Feb 2010 09:50:07 +0000 (+0200) Subject: OMAP: DSS2: fix driver probe error handling X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c121b15244c53637c3e9ca608b8816abcfbe2f8e;p=linux-beck.git OMAP: DSS2: fix driver probe error handling If driver's probe failed, the uninit was not called. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 967cbda1fd72..39b1a20a298c 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; }