Skip to content

Commit e60e8a7

Browse files
Yang Lialexandrebelloni
authored andcommitted
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. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220518232445.79156-1-yang.lee@linux.alibaba.com
1 parent 6ddabcb commit e60e8a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/rtc/rtc-rzn1.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ static struct platform_driver rzn1_rtc_driver = {
408408
.remove = rzn1_rtc_remove,
409409
.driver = {
410410
.name = "rzn1-rtc",
411-
.owner = THIS_MODULE,
412411
.of_match_table = rzn1_rtc_of_match,
413412
},
414413
};

0 commit comments

Comments
 (0)