Skip to contentSkip to conversation

eeprom: fix platform_no_drv_owner.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Jan 20, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eeprom: fix platform_no_drv_owner.cocci warnings

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---

tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
char-misc-testing

head:   7a11a1d1b58873b2e5a6922dcdc23b6b339b14ba
commit: cfad6425382ec81acd073fdf24361e1c30b4cb36 [22/32] eeprom: Add IDT

89HPESx EEPROM/CSR driver

 idt_89hpesx.c |    1 -
 1 file changed, 1 deletion(-)
drivers/misc/eeprom/idt_89hpesx.c +0 -1
@@ -1552,7 +1552,6 @@ MODULE_DEVICE_TABLE(i2c, idt_ids);
 static struct i2c_driver idt_driver = {
 	.driver = {
 		.name = IDT_NAME,
-		.owner = THIS_MODULE,
 	},
 	.probe = idt_probe,
 	.remove = idt_remove,