Skip to contentSkip to conversation

rtc: rzn1: fix platform_no_drv_owner.cocci warning

PATCH Applied Yang Li 2 participants 2 messages May 18, 2022 – May 19, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 rtc: rzn1: fix platform_no_drv_owner.cocci warning

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.

---
 drivers/rtc/rtc-rzn1.c | 1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-rzn1.c +0 -1
index 980ade8c9601..f92d1398b0f1 100644
@@ -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,
 	},
 };
Signature · 1 line
2.20.1.7.g153144c
maintainer Applied
#1 lore raw
Quoted 5 lines · Yang Li

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.

Applied, thanks!

[1/1] rtc: rzn1: fix platform_no_drv_owner.cocci warning

      commit: e60e8a73235ce5d42a2891c6989e8df1c8888c4a

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com