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 <[email protected]>
---
 drivers/pinctrl/mediatek/pinctrl-mt6397.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c 
b/drivers/pinctrl/mediatek/pinctrl-mt6397.c
index 767bbdf..f9751ae 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt6397.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt6397.c
@@ -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,
        },
 };
-- 
1.9.1

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

Reply via email to