diff options
| -rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index 7e282e3d6038..57de0bdc5a3b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c | |||
| @@ -102,7 +102,7 @@ static void exynos_drm_encoder_disable(struct drm_encoder *encoder) | |||
| 102 | 102 | ||
| 103 | /* all planes connected to this encoder should be also disabled. */ | 103 | /* all planes connected to this encoder should be also disabled. */ |
| 104 | drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) { | 104 | drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) { |
| 105 | if (plane->crtc == encoder->crtc) | 105 | if (plane->crtc && (plane->crtc == encoder->crtc)) |
| 106 | plane->funcs->disable_plane(plane); | 106 | plane->funcs->disable_plane(plane); |
| 107 | } | 107 | } |
| 108 | } | 108 | } |
