[PATCH] extcon: 3gpio: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Sun Dec 18 2016 - 21:02:25 EST


drivers/extcon/extcon-3gpio_otg.c:190: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: David Cohen <david.a.cohen@xxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

extcon-3gpio_otg.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/extcon/extcon-3gpio_otg.c
+++ b/drivers/extcon/extcon-3gpio_otg.c
@@ -187,7 +187,6 @@ MODULE_DEVICE_TABLE(acpi, usb_otg_acpi_m
static struct platform_driver usb_otg_driver = {
.driver = {
.name = DRV_NAME,
- .owner = THIS_MODULE,
.acpi_match_table = ACPI_PTR(usb_otg_acpi_match),
},
.probe = usb_otg_probe,