diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-13 22:21:59 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 13:12:24 +0200 |
commit | 2206e6a11bf4acff9831b4dbfaa3c3adc7d6172f (patch) | |
tree | eb8a6ec4eb808f5b9fb65a960cb6c782ea75ef9b /drivers/gpu/drm/i915/i915_dma.c | |
parent | c0c97622c1bda6de598dca787d382abe39bb642b (diff) | |
download | op-kernel-dev-2206e6a11bf4acff9831b4dbfaa3c3adc7d6172f.zip op-kernel-dev-2206e6a11bf4acff9831b4dbfaa3c3adc7d6172f.tar.gz |
drm/i915: use dev_priv directly in i915_driver_unload
Noticed while playing with coccinelle.
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index d02c8de..46f1dec 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -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; } |