linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings
@ 2019-02-14  1:56 YueHaibing
  2019-02-22 18:01 ` Stephen Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: YueHaibing @ 2019-02-14  1:56 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Matthias Brugger, Weiyi Lu
  Cc: YueHaibing, linux-clk, linux-arm-kernel, linux-mediatek, kernel-janitors

Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/clk/mediatek/clk-mt2712.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-mt2712.c b/drivers/clk/mediatek/clk-mt2712.c
index e36f4aab634d..b09cb3d99f66 100644
--- a/drivers/clk/mediatek/clk-mt2712.c
+++ b/drivers/clk/mediatek/clk-mt2712.c
@@ -1467,7 +1467,6 @@ static struct platform_driver clk_mt2712_drv = {
 	.probe = clk_mt2712_probe,
 	.driver = {
 		.name = "clk-mt2712",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_clk_mt2712,
 	},
 };






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings
  2019-02-14  1:56 [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings YueHaibing
@ 2019-02-22 18:01 ` Stephen Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2019-02-22 18:01 UTC (permalink / raw)
  To: Matthias Brugger, Michael Turquette, Weiyi Lu, YueHaibing
  Cc: YueHaibing, linux-clk, linux-arm-kernel, linux-mediatek, kernel-janitors

Quoting YueHaibing (2019-02-13 17:56:16)
> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings
  2020-09-22  7:51 Zou Wei
@ 2020-09-22 19:57 ` Stephen Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2020-09-22 19:57 UTC (permalink / raw)
  To: Zou Wei, matthias.bgg, mturquette
  Cc: linux-clk, linux-arm-kernel, linux-mediatek, linux-kernel, Zou Wei

Quoting Zou Wei (2020-09-22 00:51:05)
> ./drivers/clk/mediatek/clk-mt6765.c:912: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: 1aca9939bf72 ("clk: mediatek: Add MT6765 clock support")
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings
@ 2020-09-22  7:51 Zou Wei
  2020-09-22 19:57 ` Stephen Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Zou Wei @ 2020-09-22  7:51 UTC (permalink / raw)
  To: mturquette, sboyd, matthias.bgg
  Cc: linux-clk, linux-arm-kernel, linux-mediatek, linux-kernel, Zou Wei

./drivers/clk/mediatek/clk-mt6765.c:912: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: 1aca9939bf72 ("clk: mediatek: Add MT6765 clock support")
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 drivers/clk/mediatek/clk-mt6765.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-mt6765.c b/drivers/clk/mediatek/clk-mt6765.c
index db8db1b..d77ea5a 100644
--- a/drivers/clk/mediatek/clk-mt6765.c
+++ b/drivers/clk/mediatek/clk-mt6765.c
@@ -909,7 +909,6 @@ static struct platform_driver clk_mt6765_drv = {
 	.probe = clk_mt6765_probe,
 	.driver = {
 		.name = "clk-mt6765",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_clk_mt6765,
 	},
 };
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-22 19:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14  1:56 [PATCH -next] clk: mediatek: fix platform_no_drv_owner.cocci warnings YueHaibing
2019-02-22 18:01 ` Stephen Boyd
2020-09-22  7:51 Zou Wei
2020-09-22 19:57 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).