mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e020f9af6d
commit
c121b15244
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue