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

Message ID 20190719032414.85369-1-yuehaibing@huawei.com
State New
Headers show
Series
  • [-next] pinctrl: sprd: Fix platform_no_drv_owner.cocci warnings
Related show

Commit Message

YueHaibing July 19, 2019, 3:24 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/sprd/pinctrl-sprd-sc9860.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Linus Walleij Aug. 2, 2019, 10:33 p.m. UTC | #1
On Fri, Jul 19, 2019 at 5:18 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/sprd/pinctrl-sprd-sc9860.c b/drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c
index 3b65aeab7244..06c8671b40e7 100644
--- a/drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c
+++ b/drivers/pinctrl/sprd/pinctrl-sprd-sc9860.c
@@ -940,7 +940,6 @@  MODULE_DEVICE_TABLE(of, sprd_pinctrl_of_match);
 static struct platform_driver sprd_pinctrl_driver = {
 	.driver = {
 		.name = "sprd-pinctrl",
-		.owner = THIS_MODULE,
 		.of_match_table = sprd_pinctrl_of_match,
 	},
 	.probe = sprd_pinctrl_probe,