[PATCH 7/7] pinctrl: atlas7: Remove .owner field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 drivers/pinctrl/sirf/pinctrl-atlas7.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c
index 046251a..c2ced3f 100644
--- a/drivers/pinctrl/sirf/pinctrl-atlas7.c
+++ b/drivers/pinctrl/sirf/pinctrl-atlas7.c
@@ -4066,7 +4066,6 @@ static int atlas7_pinmux_probe(struct platform_device *pdev)
 	pmx->pctl_desc.pctlops = &atlas7_pinctrl_ops;
 	pmx->pctl_desc.pmxops = &atlas7_pinmux_ops;
 	pmx->pctl_desc.confops = &atlas7_pinconf_ops;
-	pmx->pctl_desc.owner = THIS_MODULE;
 
 	for (idx = 0; idx < banks; idx++) {
 		pmx->regs[idx] = of_iomap(np, idx);
@@ -4109,7 +4108,6 @@ static const struct of_device_id atlas7_pinmux_ids[] = {
 static struct platform_driver atlas7_pinmux_driver = {
 	.driver = {
 		.name = "atlas7-ioc",
-		.owner = THIS_MODULE,
 		.of_match_table = atlas7_pinmux_ids,
 	},
 	.probe = atlas7_pinmux_probe,
-- 
1.9.1

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




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux