eeprom: fix platform_no_drv_owner.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Fri, 20 Jan 2017 20:57:57 +0000 (21:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:41:44 +0000 (11:41 +0100)
No need to set .owner here. The core will do it.

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

CC: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/idt_89hpesx.c

index 56bc5c2dfe6089442bcd73a32f5f8f53af304887..4db0d2cb08c6c428fc6b648e08e5cb1c0f6add35 100644 (file)
@@ -1554,7 +1554,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,