linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] rtc: rzn1: fix platform_no_drv_owner.cocci warning
@ 2022-05-18 23:24 Yang Li
  2022-05-19  9:20 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-05-18 23:24 UTC (permalink / raw)
  To: miquel.raynal
  Cc: a.zummo, alexandre.belloni, linux-rtc, linux-renesas-soc,
	linux-kernel, Yang Li, Abaci Robot

Remove .owner field if calls are used which set it automatically.
./drivers/rtc/rtc-rzn1.c:411:3-8: No need to set .owner here. The core
will do it.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/rtc/rtc-rzn1.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-rzn1.c b/drivers/rtc/rtc-rzn1.c
index 980ade8c9601..f92d1398b0f1 100644
--- a/drivers/rtc/rtc-rzn1.c
+++ b/drivers/rtc/rtc-rzn1.c
@@ -408,7 +408,6 @@ static struct platform_driver rzn1_rtc_driver = {
 	.remove = rzn1_rtc_remove,
 	.driver = {
 		.name	= "rzn1-rtc",
-		.owner	= THIS_MODULE,
 		.of_match_table = rzn1_rtc_of_match,
 	},
 };
-- 
2.20.1.7.g153144c


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

end of thread, other threads:[~2022-05-19  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 23:24 [PATCH -next] rtc: rzn1: fix platform_no_drv_owner.cocci warning Yang Li
2022-05-19  9:20 ` Alexandre Belloni

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).