Skip to content

Commit

Permalink
drm/nouveau: Don't skip card take down on nv0x.
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Jan 10, 2010
1 parent 0829168 commit 111b459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/nouveau/nouveau_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ static void nouveau_close(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;

/* In the case of an error dev_priv may not be be allocated yet */
if (dev_priv && dev_priv->card_type)
/* In the case of an error dev_priv may not be allocated yet */
if (dev_priv)
nouveau_card_takedown(dev);
}

Expand Down

0 comments on commit 111b459

Please sign in to comment.