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 <fabio.estevam@freescale.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
7e9236ff3d
commit
3944e7b78c
7 changed files with 0 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -61,7 +61,6 @@ static struct platform_driver mtk_pinctrl_driver = {
|
|||
.probe = mt6397_pinctrl_probe,
|
||||
.driver = {
|
||||
.name = "mediatek-mt6397-pinctrl",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mt6397_pctrl_match,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -342,7 +342,6 @@ static struct platform_driver mtk_pinctrl_driver = {
|
|||
.probe = mt8127_pinctrl_probe,
|
||||
.driver = {
|
||||
.name = "mediatek-mt8127-pinctrl",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mt8127_pctrl_match,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -357,7 +357,6 @@ static struct platform_driver mtk_pinctrl_driver = {
|
|||
.probe = mt8135_pinctrl_probe,
|
||||
.driver = {
|
||||
.name = "mediatek-mt8135-pinctrl",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = mt8135_pctrl_match,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -855,7 +855,6 @@ MODULE_DEVICE_TABLE(acpi, amd_gpio_acpi_match);
|
|||
static struct platform_driver amd_gpio_driver = {
|
||||
.driver = {
|
||||
.name = "amd_gpio",
|
||||
.owner = THIS_MODULE,
|
||||
.acpi_match_table = ACPI_PTR(amd_gpio_acpi_match),
|
||||
},
|
||||
.probe = amd_gpio_probe,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -804,7 +804,6 @@ static struct platform_driver sun6i_a31s_pinctrl_driver = {
|
|||
.probe = sun6i_a31s_pinctrl_probe,
|
||||
.driver = {
|
||||
.name = "sun6i-a31s-pinctrl",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = sun6i_a31s_pinctrl_match,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue