[PATCH] platform/x86: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Fri Jan 13 2017 - 05:16:28 EST


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@xxxxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

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