Commit e60e8a73 authored by Yang Li's avatar Yang Li Committed by Alexandre Belloni

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220518232445.79156-1-yang.lee@linux.alibaba.com
parent 6ddabcb1
...@@ -408,7 +408,6 @@ static struct platform_driver rzn1_rtc_driver = { ...@@ -408,7 +408,6 @@ static struct platform_driver rzn1_rtc_driver = {
.remove = rzn1_rtc_remove, .remove = rzn1_rtc_remove,
.driver = { .driver = {
.name = "rzn1-rtc", .name = "rzn1-rtc",
.owner = THIS_MODULE,
.of_match_table = rzn1_rtc_of_match, .of_match_table = rzn1_rtc_of_match,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment