[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170907100224.GA78930@lkp-wsx02>
Date: Thu, 7 Sep 2017 18:02:24 +0800
From: kbuild test robot <lkp@...el.com>
To: Corentin Chary <corentin.chary@...il.com>
Cc: kbuild-all@...org, Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>, corentin.chary@...il.com,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
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@...il.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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,
},
};
Powered by blists - more mailing lists