Skip to contentSkip to conversation

pinctrl: imx6ul: Remove .owner field

PATCH In review Fabio Estevam 2 participants 2 messages Aug 13, 2015 – Aug 25, 2015

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author maintainer
#0 lore raw

PATCH 1/1 pinctrl: imx6ul: Remove .owner field

From: Fabio Estevam <[email protected]>

platform_driver does not need to set an owner as it will be populated by the driver core.

The semantic patch that makes this change is available in scripts/coccinelle/api/platform_no_drv_owner.cocci.

---
 drivers/pinctrl/freescale/pinctrl-imx6ul.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/freescale/pinctrl-imx6ul.c +0 -1
index b182be7..08e7576 100644
@@ -299,7 +299,6 @@ static int imx6ul_pinctrl_probe(struct platform_device *pdev)
 static struct platform_driver imx6ul_pinctrl_driver = {
 	.driver = {
 		.name = "imx6ul-pinctrl",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(imx6ul_pinctrl_of_match),
 	},
 	.probe = imx6ul_pinctrl_probe,
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

platform_driver does not need to set an owner as it will be populated by the driver core.

The semantic patch that makes this change is available in scripts/coccinelle/api/platform_no_drv_owner.cocci.

Patch applied.

Yours,
Linus Walleij