[-next] pinctrl: ti-iodelay: Fix platform_no_drv_owner.cocci warnings
diff mbox series

Message ID 1548207411-15190-1-git-send-email-yuehaibing@huawei.com
State New
Headers show
Series
  • [-next] pinctrl: ti-iodelay: Fix platform_no_drv_owner.cocci warnings
Related show

Commit Message

YueHaibing Jan. 23, 2019, 1:36 a.m. UTC
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Linus Walleij Jan. 28, 2019, 1:42 p.m. UTC | #1
On Wed, Jan 23, 2019 at 2:31 AM YueHaibing <yuehaibing@huawei.com> wrote:

> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Patch applied.

Yours,
Linus Walleij

Patch
diff mbox series

diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
index 76f9083..e5e7f1f 100644
--- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
+++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c
@@ -923,7 +923,6 @@  static int ti_iodelay_remove(struct platform_device *pdev)
 	.probe = ti_iodelay_probe,
 	.remove = ti_iodelay_remove,
 	.driver = {
-		   .owner = THIS_MODULE,
 		   .name = DRIVER_NAME,
 		   .of_match_table = ti_iodelay_of_match,
 	},