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) goto err1; } - if (ovl->get_device(ovl) == NULL) { + if (ovl->manager == NULL || ovl->manager->output == NULL) { r = -EINVAL; goto err1; } @@ -1514,7 +1514,7 @@ int dss_ovl_disable(struct omap_overlay *ovl) goto err; } - if (ovl->get_device(ovl) == NULL) { + if (ovl->manager == NULL || ovl->manager->output == NULL) { r = -EINVAL; goto err; }