lkml.org 
[lkml]   [2017]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] platform/x86: fix platform_no_drv_owner.cocci warnings
drivers/platform/x86/scu.c:1541:3-8: 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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

--- a/drivers/platform/x86/scu.c
+++ b/drivers/platform/x86/scu.c
@@ -1538,7 +1538,6 @@ static struct platform_driver scu_driver
.remove = __exit_p(scu_remove),
.driver = {
.name = "scu",
- .owner = THIS_MODULE,
},
};

\
 
 \ /
  Last update: 2017-01-13 11:17    [W:0.119 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site