From 3944e7b78c7b1bfed7808692cc539496b3f94eea Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 1 Jun 2015 09:53:59 -0300 Subject: pinctrl: Remove .owner field 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 Signed-off-by: Linus Walleij --- drivers/pinctrl/sirf/pinctrl-atlas7.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/pinctrl/sirf') diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c index 046251aaf156..c2ced3f68768 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, -- cgit v1.2.3