aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index 6a459139910f..a6b573e89829 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -722,8 +722,8 @@ static void nouveau_close(struct drm_device *dev)
722{ 722{
723 struct drm_nouveau_private *dev_priv = dev->dev_private; 723 struct drm_nouveau_private *dev_priv = dev->dev_private;
724 724
725 /* In the case of an error dev_priv may not be be allocated yet */ 725 /* In the case of an error dev_priv may not be allocated yet */
726 if (dev_priv && dev_priv->card_type) 726 if (dev_priv)
727 nouveau_card_takedown(dev); 727 nouveau_card_takedown(dev);
728} 728}
729 729