nfc: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 30 Mar 2016 00:51:04 +0000 (09:51 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 1 May 2016 21:38:14 +0000 (23:38 +0200)
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nxp-nci/i2c.c
drivers/nfc/pn544/i2c.c
drivers/nfc/st-nci/i2c.c
drivers/nfc/st21nfca/i2c.c

index 11520f472f982bd5efe6abe277849af3ff95dcce..36099e557730e3cb47b151a36e02fc901b38f518 100644 (file)
@@ -418,7 +418,6 @@ MODULE_DEVICE_TABLE(acpi, acpi_id);
 static struct i2c_driver nxp_nci_i2c_driver = {
        .driver = {
                   .name = NXP_NCI_I2C_DRIVER_NAME,
-                  .owner  = THIS_MODULE,
                   .acpi_match_table = ACPI_PTR(acpi_id),
                   .of_match_table = of_match_ptr(of_nxp_nci_i2c_match),
                  },
index 45d0e667d7ae3f2271165e3e169a3b7b7656e97f..f837c39a801709a8a9be3f8c58cf74baf2ca196e 100644 (file)
@@ -1106,7 +1106,6 @@ MODULE_DEVICE_TABLE(of, of_pn544_i2c_match);
 static struct i2c_driver pn544_hci_i2c_driver = {
        .driver = {
                   .name = PN544_HCI_I2C_DRIVER_NAME,
-                  .owner  = THIS_MODULE,
                   .of_match_table = of_match_ptr(of_pn544_i2c_match),
                   .acpi_match_table = ACPI_PTR(pn544_hci_i2c_acpi_match),
                  },
index 8a56b5c6e4c4e4899f57278e3493d4617d965c4b..925dbeef74db972c633e0c5bb41a50ded444b7f3 100644 (file)
@@ -416,7 +416,6 @@ MODULE_DEVICE_TABLE(of, of_st_nci_i2c_match);
 
 static struct i2c_driver st_nci_i2c_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = ST_NCI_I2C_DRIVER_NAME,
                .of_match_table = of_match_ptr(of_st_nci_i2c_match),
                .acpi_match_table = ACPI_PTR(st_nci_i2c_acpi_match),
index 1f44a151d20616b21a148b6d9d8b070d54089201..640b4de0579337b373d346354740eaebb8cb58e0 100644 (file)
@@ -721,7 +721,6 @@ MODULE_DEVICE_TABLE(of, of_st21nfca_i2c_match);
 
 static struct i2c_driver st21nfca_hci_i2c_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = ST21NFCA_HCI_I2C_DRIVER_NAME,
                .of_match_table = of_match_ptr(of_st21nfca_i2c_match),
                .acpi_match_table = ACPI_PTR(st21nfca_hci_i2c_acpi_match),