nfc: No need to set .owner platform_driver_register
authorTian Tao <tiantao6@hisilicon.com>
Tue, 14 Jan 2020 02:57:39 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jan 2020 19:58:11 +0000 (11:58 -0800)
the i2c_add_driver will set the .owner to THIS_MODULE

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/i2c.c

index 7507176cca0a816b55b0afbfc9b9f041d4ced804..0207e66cee2119852b4945b6227a936c15267366 100644 (file)
@@ -274,7 +274,6 @@ MODULE_DEVICE_TABLE(i2c, pn533_i2c_id_table);
 static struct i2c_driver pn533_i2c_driver = {
        .driver = {
                   .name = PN533_I2C_DRIVER_NAME,
-                  .owner = THIS_MODULE,
                   .of_match_table = of_match_ptr(of_pn533_i2c_match),
                  },
        .probe = pn533_i2c_probe,