Skip to content

Commit

Permalink
nfc: No need to set .owner platform_driver_register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tian Tao authored and David S. Miller committed Jan 14, 2020
1 parent 2b133ad commit a4d35e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/nfc/pn533/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a4d35e7

Please sign in to comment.