diff mbox

platform/x86: fix platform_no_drv_owner.cocci warnings

Message ID 20170113101510.GA25249@lkp-wsm-ep2 (mailing list archive)
State Not Applicable, archived
Delegated to: Andy Shevchenko
Headers show

Commit Message

kernel test robot Jan. 13, 2017, 10:15 a.m. UTC
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(-)
diff mbox

Patch

--- 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,
 	},
 };