[Intel-gfx] [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload

Damien Lespiau damien.lespiau at intel.com
Wed May 14 12:04:03 CEST 2014


On Tue, May 13, 2014 at 10:21:59PM +0200, Daniel Vetter wrote:
> Noticed while playing with coccinelle.
> 
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>

> ---
>  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
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



More information about the Intel-gfx mailing list