lkml.org 
[lkml]   [2017]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers/x86: fix platform_no_drv_owner.cocci warnings
drivers/platform/x86/thinkpad-wmi.c:1196: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

Fixes: 3af63e23450d ("drivers/x86: add thinkpad-wmi")
CC: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

thinkpad-wmi.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/platform/x86/thinkpad-wmi.c
+++ b/drivers/platform/x86/thinkpad-wmi.c
@@ -1193,7 +1193,6 @@ static struct platform_driver platform_d
.remove = __exit_p(thinkpad_wmi_remove),
.driver = {
.name = THINKPAD_WMI_FILE,
- .owner = THIS_MODULE,
},
};

\
 
 \ /
  Last update: 2017-09-07 12:04    [W:0.078 / U:0.576 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site