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

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

Commit Message

Yuehaibing Oct. 12, 2018, 9:33 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/pinctrl-rzn1.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Linus Walleij Oct. 15, 2018, 2:20 p.m. UTC | #1
On Fri, Oct 12, 2018 at 11:22 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/pinctrl-rzn1.c b/drivers/pinctrl/pinctrl-rzn1.c
index ce05e3a..57886dc 100644
--- a/drivers/pinctrl/pinctrl-rzn1.c
+++ b/drivers/pinctrl/pinctrl-rzn1.c
@@ -932,7 +932,6 @@  static int rzn1_pinctrl_remove(struct platform_device *pdev)
 	.remove = rzn1_pinctrl_remove,
 	.driver	= {
 		.name		= "rzn1-pinctrl",
-		.owner		= THIS_MODULE,
 		.of_match_table	= rzn1_pinctrl_match,
 	},
 };