mirror of https://gitee.com/openkylin/linux.git
nfc: No need to set .owner platform_driver_register
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>
This commit is contained in:
parent
2b133adfcf
commit
a4d35e7735
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue