public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload
@ 2014-05-13 20:21 Daniel Vetter
  2014-05-13 20:22 ` [PATCH 2/2] drm/i915: s/dev->dev_private/to_i915(dev)/ Daniel Vetter
  2014-05-14 10:04 ` [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload Damien Lespiau
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Vetter @ 2014-05-13 20:21 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter

Noticed while playing with coccinelle.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/i915_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index d02c8de4bd6c..46f1decab76f 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;
 }
-- 
1.9.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-14 11:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 20:21 [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload Daniel Vetter
2014-05-13 20:22 ` [PATCH 2/2] drm/i915: s/dev->dev_private/to_i915(dev)/ Daniel Vetter
2014-05-13 21:56   ` Jesse Barnes
2014-05-13 22:24     ` Jesse Barnes
2014-05-14  8:51     ` Jani Nikula
2014-05-14 10:04 ` [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload Damien Lespiau
2014-05-14 11:12   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox