drm/nouveau: use NULL file_priv for DRM-created channels
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 May 2011 01:12:55 +0000 (11:12 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 05:58:20 +0000 (15:58 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index 9aa96b9..9965063 100644 (file)
@@ -449,8 +449,8 @@ nouveau_card_init_channel(struct drm_device *dev)
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        int ret;
 
-       ret = nouveau_channel_alloc(dev, &dev_priv->channel,
-                                   (struct drm_file *)-2, NvDmaFB, NvDmaTT);
+       ret = nouveau_channel_alloc(dev, &dev_priv->channel, NULL,
+                                   NvDmaFB, NvDmaTT);
        if (ret)
                return ret;