drm/i915: use dev_priv directly in i915_driver_unload
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 May 2014 20:21:59 +0000 (22:21 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 May 2014 11:12:24 +0000 (13:12 +0200)
Noticed while playing with coccinelle.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c

index d02c8de..46f1dec 100644 (file)
@@ -1867,7 +1867,7 @@ int i915_driver_unload(struct drm_device *dev)
                kmem_cache_destroy(dev_priv->slab);
 
        pci_dev_put(dev_priv->bridge_dev);
-       kfree(dev->dev_private);
+       kfree(dev_priv);
 
        return 0;
 }