pinctrl: Remove .owner field
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 1 Jun 2015 12:53:59 +0000 (09:53 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Jun 2015 08:12:42 +0000 (10:12 +0200)
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>
drivers/pinctrl/freescale/pinctrl-imx7d.c
drivers/pinctrl/mediatek/pinctrl-mt6397.c
drivers/pinctrl/mediatek/pinctrl-mt8127.c
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/pinctrl-amd.c
drivers/pinctrl/sirf/pinctrl-atlas7.c
drivers/pinctrl/sunxi/pinctrl-sun6i-a31s.c

index d8ab17e4af3a0872d7ff4595d2ab07120bcf8065..1fa7530530dd94f25efb29a315076fec0b880871 100644 (file)
@@ -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,
index 767bbdf045398b45a7a6dacab2643e92773da32a..f9751ae28e327abbee045646b9f14439b1636288 100644 (file)
@@ -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,
        },
 };
index 6a26cfac08442c5089e3e71e61adaa3d6db63619..b317b0b664eabd7a8be533f0d2e59a377aa4a75c 100644 (file)
@@ -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,
        },
 };
index 203bd2a8548b4e7550f6085fd87f99b8960bb134..404f1178511d97b24adebdd8b95a6c3c4daf8889 100644 (file)
@@ -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,
        },
 };
index 7de3b64bf1428982572fd981e1cb28a04669ba80..e74791254c9ca7714e77184940ea18bdbdae23d9 100644 (file)
@@ -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,
index 046251aaf1563138d7eb018c36049fe7b1317a26..c2ced3f68768c14bb2fd121d59623241971a66c7 100644 (file)
@@ -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,
index d3725dcd6979b874431e7f7f9c3ab61eb484ec63..e570d5c93ecc87fa1327e10b17475193e97e464f 100644 (file)
@@ -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,
        },
 };