diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_drv.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index f2a69cfb6ebf..d0f6929857bb 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -723,9 +723,6 @@ static int omap_drm_suspend_all_displays(struct drm_device *ddev) | |||
723 | for (i = 0; i < priv->num_pipes; i++) { | 723 | for (i = 0; i < priv->num_pipes; i++) { |
724 | struct omap_dss_device *display = priv->pipes[i].display; | 724 | struct omap_dss_device *display = priv->pipes[i].display; |
725 | 725 | ||
726 | if (!display->driver) | ||
727 | continue; | ||
728 | |||
729 | if (display->state == OMAP_DSS_DISPLAY_ACTIVE) { | 726 | if (display->state == OMAP_DSS_DISPLAY_ACTIVE) { |
730 | display->driver->disable(display); | 727 | display->driver->disable(display); |
731 | display->activate_after_resume = true; | 728 | display->activate_after_resume = true; |
@@ -745,9 +742,6 @@ static int omap_drm_resume_all_displays(struct drm_device *ddev) | |||
745 | for (i = 0; i < priv->num_pipes; i++) { | 742 | for (i = 0; i < priv->num_pipes; i++) { |
746 | struct omap_dss_device *display = priv->pipes[i].display; | 743 | struct omap_dss_device *display = priv->pipes[i].display; |
747 | 744 | ||
748 | if (!display->driver) | ||
749 | continue; | ||
750 | |||
751 | if (display->activate_after_resume) { | 745 | if (display->activate_after_resume) { |
752 | display->driver->enable(display); | 746 | display->driver->enable(display); |
753 | display->activate_after_resume = false; | 747 | display->activate_after_resume = false; |