lkml.org 
[lkml]   [2018]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drm: fix drm-get-put.cocci warnings
From: Fengguang Wu <fengguang.wu@intel.com>

Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and
drm_*_unreference() helpers.

Generated by: scripts/coccinelle/api/drm-get-put.cocci

Fixes: 6784ac15bc68 ("drm: Add ASPEED GFX driver")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

tree: https://github.com/shenki/linux drm-v1
head: 9680ed7979d5d403c6bde36271a048d62c048180
commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEED
GFX
driver

aspeed_gfx_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
+++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
@@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf
err_unload:
aspeed_gfx_unload(drm);
err_free:
- drm_dev_unref(drm);
+ drm_dev_put(drm);

return ret;
}
@@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct plat

drm_dev_unregister(drm);
aspeed_gfx_unload(drm);
- drm_dev_unref(drm);
+ drm_dev_put(drm);

return 0;
}
\
 
 \ /
  Last update: 2018-04-12 07:54    [W:0.441 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site