Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260139
b: refs/heads/master
c: 06b75e3
h: refs/heads/master
i:
  260137: d5a40e7
  260135: 4748413
v: v3
  • Loading branch information
Ben Skeggs committed Jun 23, 2011
1 parent 02561bd commit e9984e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5de8037ab466d397df17ff72382c33a908f42f6c
refs/heads/master: 06b75e3552394af66cc1ee4bfb5fe01a94929adb
11 changes: 6 additions & 5 deletions trunk/drivers/gpu/drm/nouveau/nouveau_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,11 +720,16 @@ static void nouveau_card_takedown(struct drm_device *dev)
struct nouveau_engine *engine = &dev_priv->engine;
int e;

drm_kms_helper_poll_fini(dev);
nouveau_fbcon_fini(dev);

if (dev_priv->channel) {
nouveau_fence_fini(dev);
nouveau_channel_put_unlocked(&dev_priv->channel);
nouveau_fence_fini(dev);
}

engine->display.destroy(dev);

if (!dev_priv->noaccel) {
engine->fifo.takedown(dev);
for (e = NVOBJ_ENGINE_NR - 1; e >= 0; e--) {
Expand Down Expand Up @@ -1063,11 +1068,7 @@ void nouveau_lastclose(struct drm_device *dev)
int nouveau_unload(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_engine *engine = &dev_priv->engine;

drm_kms_helper_poll_fini(dev);
nouveau_fbcon_fini(dev);
engine->display.destroy(dev);
nouveau_card_takedown(dev);

iounmap(dev_priv->mmio);
Expand Down

0 comments on commit e9984e1

Please sign in to comment.