Skip to contentSkip to conversation

NFC: Delete owner assignment

PATCH Applied SF Markus Elfring 2 participants 2 messages Aug 15, 2016 – Sep 19, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFC: Delete owner assignment

From: Markus Elfring <[email protected]>
Date: Mon, 15 Aug 2016 09:00:26 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

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

---
 drivers/nfc/nfcmrvl/i2c.c | 1 -
 drivers/nfc/pn533/i2c.c   | 1 -
 drivers/nfc/s3fwrn5/i2c.c | 1 -
 3 files changed, 3 deletions(-)
drivers/nfc/nfcmrvl/i2c.c +0 -1
index 78b7aa8..45c64a2 100644
@@ -278,7 +278,6 @@ static struct i2c_driver nfcmrvl_i2c_driver = {
 	.remove = nfcmrvl_i2c_remove,
 	.driver = {
 		.name		= "nfcmrvl_i2c",
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(of_nfcmrvl_i2c_match),
 	},
 };
drivers/nfc/pn533/i2c.c +0 -1
index 1dc8924..90798f0 100644
@@ -265,7 +265,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,
drivers/nfc/s3fwrn5/i2c.c +0 -1
index 3ed0adf..2e762c6 100644
@@ -290,7 +290,6 @@ MODULE_DEVICE_TABLE(of, of_s3fwrn5_i2c_match);
 
 static struct i2c_driver s3fwrn5_i2c_driver = {
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = S3FWRN5_I2C_DRIVER_NAME,
 		.of_match_table = of_match_ptr(of_s3fwrn5_i2c_match),
 	},
Signature · 1 line
2.9.2
Applied
#1 lore raw

Hi Markus,

Quoted 5 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Mon, 15 Aug 2016 09:00:26 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

Quoted 7 lines

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

---
 drivers/nfc/nfcmrvl/i2c.c | 1 -
 drivers/nfc/pn533/i2c.c   | 1 -
 drivers/nfc/s3fwrn5/i2c.c | 1 -
 3 files changed, 3 deletions(-)

Applied to nfc-next, thanks.

Cheers,
Samuel.