OMAP: DSS2: OMAPFB: fix cleanup on dssdev enable error
If enabling a dss device failed, omapfb didn't exit, leading to crash. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
parent
b3f91eb8d8
commit
6d2e0bd608
1 changed files with 3 additions and 1 deletions
|
@ -2176,9 +2176,11 @@ static int omapfb_probe(struct platform_device *pdev)
|
||||||
u16 w, h;
|
u16 w, h;
|
||||||
#endif
|
#endif
|
||||||
r = def_display->enable(def_display);
|
r = def_display->enable(def_display);
|
||||||
if (r)
|
if (r) {
|
||||||
dev_warn(fbdev->dev, "Failed to enable display '%s'\n",
|
dev_warn(fbdev->dev, "Failed to enable display '%s'\n",
|
||||||
def_display->name);
|
def_display->name);
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
/* set the update mode */
|
/* set the update mode */
|
||||||
if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) {
|
if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) {
|
||||||
|
|
Loading…
Reference in a new issue