lkml.org 
[lkml]   [2016]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drm: fix platform_no_drv_owner.cocci warnings
drivers/gpu/drm/arc/arcpgu_drv.c:243:6-11: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

arcpgu_drv.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/gpu/drm/arc/arcpgu_drv.c
+++ b/drivers/gpu/drm/arc/arcpgu_drv.c
@@ -240,7 +240,6 @@ static struct platform_driver arcpgu_pla
.remove = arcpgu_remove,
.driver = {
.name = "arcpgu",
- .owner = THIS_MODULE,
.of_match_table = arcpgu_of_table,
},
};
\
 
 \ /
  Last update: 2016-03-11 18:21    [W:0.393 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site