pinctrl: mediatek: fix platform_no_drv_owner.cocci warnings
diff mbox

Message ID 20160216220615.GA90965@lkp-sb04
State New
Headers show

Commit Message

kbuild test robot Feb. 16, 2016, 10:06 p.m. UTC
drivers/pinctrl/mediatek/pinctrl-mt2701.c:576:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 pinctrl-mt2701.c |    1 -
 1 file changed, 1 deletion(-)

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

Comments

Linus Walleij Feb. 18, 2016, 11:25 p.m. UTC | #1
On Tue, Feb 16, 2016 at 11:06 PM, kbuild test robot
<fengguang.wu@intel.com> wrote:

> drivers/pinctrl/mediatek/pinctrl-mt2701.c:576:3-8: No need to set .owner here. The core will do it.
>
>  Remove .owner field if calls are used which set it automatically
>
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
>
> CC: Biao Huang <biao.huang@mediatek.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

Sorry I already fixed this in-tree, thanks anyway.

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

Patch
diff mbox

--- a/drivers/pinctrl/mediatek/pinctrl-mt2701.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt2701.c
@@ -573,7 +573,6 @@  static struct platform_driver mtk_pinctr
 	.probe = mt2701_pinctrl_probe,
 	.driver = {
 		.name = "mediatek-mt2701-pinctrl",
-		.owner = THIS_MODULE,
 		.of_match_table = mt2701_pctrl_match,
 		.pm = &mtk_eint_pm_ops,
 	},