summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/drm/dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/host1x/drm/dc.c')
-rw-r--r--drivers/gpu/host1x/drm/dc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/drm/dc.c b/drivers/gpu/host1x/drm/dc.c
index 8c04943f82e3..98f60d827558 100644
--- a/drivers/gpu/host1x/drm/dc.c
+++ b/drivers/gpu/host1x/drm/dc.c
@@ -79,6 +79,9 @@ static int tegra_plane_disable(struct drm_plane *plane)
struct tegra_plane *p = to_tegra_plane(plane);
unsigned long value;
+ if (!plane->crtc)
+ return 0;
+
value = WINDOW_A_SELECT << p->index;
tegra_dc_writel(dc, value, DC_CMD_DISPLAY_WINDOW_HEADER);