Skip to contentSkip to conversation

rtc: sd3078: fix platform_no_drv_owner.cocci warnings

PATCH Applied YueHaibing 2 participants 2 messages Jan 23, 2019

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 rtc: sd3078: fix platform_no_drv_owner.cocci warnings

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

---
 drivers/rtc/rtc-sd3078.c | 1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-sd3078.c +0 -1
index 704844f..42cb90d 100644
@@ -218,7 +218,6 @@ static int sd3078_probe(struct i2c_client *client,
 static struct i2c_driver sd3078_driver = {
 	.driver     = {
 		.name   = "sd3078",
-		.owner  = THIS_MODULE,
 		.of_match_table = of_match_ptr(rtc_dt_match),
 	},
 	.probe      = sd3078_probe,
maintainer Applied
#1 lore raw
Quoted 8 lines · YueHaibing

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

---
 drivers/rtc/rtc-sd3078.c | 1 -
 1 file changed, 1 deletion(-)

Applied.

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