Commit 1ac1f645 authored by kernel test robot's avatar kernel test robot Committed by Linus Walleij
Browse files

pinctrl: mediatek: fix platform_no_drv_owner.cocci warnings



drivers/pinctrl/mediatek/pinctrl-mt8365.c:488: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

Fixes: e94d8b6f ("pinctrl: mediatek: add support for mt8365 SoC")
CC: Fabien Parent <fparent@baylibre.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20210626051550.GA37544@d0c207d51ce8


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 16b343e8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -485,7 +485,6 @@ static struct platform_driver mtk_pinctrl_driver = {
	.probe = mtk_pinctrl_probe,
	.driver = {
		.name = "mediatek-mt8365-pinctrl",
		.owner = THIS_MODULE,
		.of_match_table = mt8365_pctrl_match,
		.pm = &mtk_eint_pm_ops,
	},