diff mbox

[1/7] pinctrl: imx7d: Remove .owner field

Message ID 1433163245-5780-1-git-send-email-fabio.estevam@freescale.com
State New
Headers show

Commit Message

Fabio Estevam June 1, 2015, 12:53 p.m. UTC
platform_driver does not need to set the owner field, as it will be 
populated by the driver core, so just remove it.

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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/pinctrl/freescale/pinctrl-imx7d.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Linus Walleij June 4, 2015, 8:13 a.m. UTC | #1
On Mon, Jun 1, 2015 at 2:53 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:

> platform_driver does not need to set the owner field, as it will be
> populated by the driver core, so just remove it.
>
> The semantic patch that makes this change is available
> in scripts/coccinelle/api/platform_no_drv_owner.cocci.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

All seven patches squashed into one and applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pinctrl/freescale/pinctrl-imx7d.c b/drivers/pinctrl/freescale/pinctrl-imx7d.c
index d8ab17e..1fa7530 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx7d.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx7d.c
@@ -361,7 +361,6 @@  static int imx7d_pinctrl_probe(struct platform_device *pdev)
 static struct platform_driver imx7d_pinctrl_driver = {
 	.driver = {
 		.name = "imx7d-pinctrl",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(imx7d_pinctrl_of_match),
 	},
 	.probe = imx7d_pinctrl_probe,