diff mbox series

clk: mediatek: fix platform_no_drv_owner.cocci warnings

Message ID 20181127104231.GA13612@lkp-wsm-ep2 (mailing list archive)
State New, archived
Headers show
Series clk: mediatek: fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Fengguang Wu Nov. 27, 2018, 10:42 a.m. UTC
From: kbuild test robot <fengguang.wu@intel.com>

drivers/clk/mediatek/clk-mt8183.c:1295: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: 14926375ef78 ("clk: mediatek: Add MT8183 clock support")
CC: Weiyi Lu <weiyi.lu@mediatek.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/Weiyi-Lu/Mediatek-MT8183-clock-and-scpsys-support/20181127-114621
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next

 clk-mt8183.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

--- a/drivers/clk/mediatek/clk-mt8183.c
+++ b/drivers/clk/mediatek/clk-mt8183.c
@@ -1292,7 +1292,6 @@  static struct platform_driver clk_mt8183
 	.probe = clk_mt8183_probe,
 	.driver = {
 		.name = "clk-mt8183",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_clk_mt8183,
 	},
 };