Skip to contentSkip to conversation

NFC: st21nfca: Remove double assignment of .owner in struct device_driver

PATCH In review Emil Goode 2 participants 2 messages Jun 2, 2014 – Jul 25, 2014

Subsystems (2)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 NFC: st21nfca: Remove double assignment of .owner in struct device_driver

The .owner member of struct device_driver is assigned THIS_MODULE twice.

Introduced by:

commit c44cb2edd01ca31471d9385f0895891b006ab904
("NFC: dts: st21nfca: Add device-tree (Open Firmware) support to st21nfca")

---
 drivers/nfc/st21nfca/i2c.c |    1 -
 1 file changed, 1 deletion(-)
drivers/nfc/st21nfca/i2c.c +0 -1
index 3f954ed..95942ca 100644
@@ -710,7 +710,6 @@ static struct i2c_driver st21nfca_hci_i2c_driver = {
 	.driver = {
 		.owner = THIS_MODULE,
 		.name = ST21NFCA_HCI_I2C_DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(of_st21nfca_i2c_match),
 	},
 	.probe = st21nfca_hci_i2c_probe,
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · On Mon, 2 Jun 2014 16:21:00 +0200 Emil Goode <[email protected]> wrote:

The .owner member of struct device_driver is assigned THIS_MODULE twice.

Introduced by:

commit c44cb2edd01ca31471d9385f0895891b006ab904
("NFC: dts: st21nfca: Add device-tree (Open Firmware) support to st21nfca")

---
 drivers/nfc/st21nfca/i2c.c |    1 -
 1 file changed, 1 deletion(-)
drivers/nfc/st21nfca/i2c.c +0 -0
index 3f954ed..95942ca 100644

drivers/nfc/st21nfca/i2c.c static struct i2c_driver st21nfca_hci_i2c_driver · line 714

Quoted 6 lines
drivers/nfc/st21nfca/i2c.c +0 -1
@@ -710,7 +710,6 @@ static struct i2c_driver st21nfca_hci_i2c_driver
 = { .driver = {
 		.owner = THIS_MODULE,
 		.name = ST21NFCA_HCI_I2C_DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.of_match_table > of_match_ptr(of_st21nfca_i2c_match), },
 	.probe = st21nfca_hci_i2c_probe,