aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_crtc.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_crtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c
index 17f7cf0c11a8..c71abc2a34d5 100644
--- a/drivers/gpu/drm/nouveau/nv04_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv04_crtc.c
@@ -860,12 +860,12 @@ nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
860static int 860static int
861nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc, 861nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc,
862 struct drm_framebuffer *fb, 862 struct drm_framebuffer *fb,
863 int x, int y, int enter) 863 int x, int y, enum mode_set_atomic state)
864{ 864{
865 struct drm_nouveau_private *dev_priv = crtc->dev->dev_private; 865 struct drm_nouveau_private *dev_priv = crtc->dev->dev_private;
866 struct drm_device *dev = dev_priv->dev; 866 struct drm_device *dev = dev_priv->dev;
867 867
868 if (enter) 868 if (state == ENTER_ATOMIC_MODE_SET)
869 nouveau_fbcon_save_disable_accel(dev); 869 nouveau_fbcon_save_disable_accel(dev);
870 else 870 else
871 nouveau_fbcon_restore_accel(dev); 871 nouveau_fbcon_restore_accel(dev);