diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-17 04:50:07 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-18 06:19:45 -0500 |
commit | c121b15244c53637c3e9ca608b8816abcfbe2f8e (patch) | |
tree | 9747a1c28fb9ab9950fb2c77adbd5c84a50adf71 /drivers | |
parent | e020f9af6d8311cd935217219f49175e161be100 (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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/dss/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
778 | 778 | ||
779 | if (r) { | 779 | if (r) { |
780 | DSSERR("driver probe failed: %d\n", r); | 780 | DSSERR("driver probe failed: %d\n", r); |
781 | dss_uninit_device(core.pdev, dssdev); | ||
781 | return r; | 782 | return r; |
782 | } | 783 | } |
783 | 784 | ||