Skip to content

Commit

Permalink
OMAP: DSS2: fix driver probe error handling
Browse files Browse the repository at this point in the history
If driver's probe failed, the uninit was not called.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Tomi Valkeinen committed Feb 18, 2010
1 parent e020f9a commit c121b15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c121b15

Please sign in to comment.