aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/omap2/dss/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c
index 417b286132f5..4bd1c998e12d 100644
--- a/drivers/video/omap2/dss/apply.c
+++ b/drivers/video/omap2/dss/apply.c
@@ -1464,7 +1464,7 @@ int dss_ovl_enable(struct omap_overlay *ovl)
1464 goto err1; 1464 goto err1;
1465 } 1465 }
1466 1466
1467 if (ovl->get_device(ovl) == NULL) { 1467 if (ovl->manager == NULL || ovl->manager->output == NULL) {
1468 r = -EINVAL; 1468 r = -EINVAL;
1469 goto err1; 1469 goto err1;
1470 } 1470 }
@@ -1514,7 +1514,7 @@ int dss_ovl_disable(struct omap_overlay *ovl)
1514 goto err; 1514 goto err;
1515 } 1515 }
1516 1516
1517 if (ovl->get_device(ovl) == NULL) { 1517 if (ovl->manager == NULL || ovl->manager->output == NULL) {
1518 r = -EINVAL; 1518 r = -EINVAL;
1519 goto err; 1519 goto err;
1520 } 1520 }