char: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 05:32:29 +0000 (14:32 +0900)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:05:27 +0000 (01:05 +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>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/st33zp24/i2c.c
drivers/char/tpm/tpm_i2c_atmel.c
drivers/char/tpm/tpm_i2c_infineon.c
drivers/char/tpm/tpm_i2c_nuvoton.c

index ad1ee180e0c2cac8f1fa8353d222102b3bb85254..309d2767c6a109c27cd73a833f9670a7360cd521 100644 (file)
@@ -258,7 +258,6 @@ static SIMPLE_DEV_PM_OPS(st33zp24_i2c_ops, st33zp24_pm_suspend,
 
 static struct i2c_driver st33zp24_i2c_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = TPM_ST33_I2C,
                .pm = &st33zp24_i2c_ops,
                .of_match_table = of_match_ptr(of_st33zp24_i2c_match),
index 7a0ca78ad3c68a879e8e1546a88c1d30b5223268..8dfb88b9739c197f01eb538157e450c67323debc 100644 (file)
@@ -217,7 +217,6 @@ static struct i2c_driver i2c_atmel_driver = {
        .remove = i2c_atmel_remove,
        .driver = {
                .name = I2C_DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &i2c_atmel_pm_ops,
                .of_match_table = of_match_ptr(i2c_atmel_of_match),
        },
index 33c5f360ab01e9c2adc687f88be912bd50513f43..63d5d22e9e600c2e7dd1b4b0e83df61f36b6a2e5 100644 (file)
@@ -711,7 +711,6 @@ static struct i2c_driver tpm_tis_i2c_driver = {
        .remove = tpm_tis_i2c_remove,
        .driver = {
                   .name = "tpm_i2c_infineon",
-                  .owner = THIS_MODULE,
                   .pm = &tpm_tis_i2c_ops,
                   .of_match_table = of_match_ptr(tpm_tis_i2c_of_match),
                   },
index 9d42b7d78e501d3d48bc31c1258d73525bf0f943..847f1597fe9b283557e45f5598da955a2dbb7f8f 100644 (file)
@@ -641,7 +641,6 @@ static struct i2c_driver i2c_nuvoton_driver = {
        .remove = i2c_nuvoton_remove,
        .driver = {
                .name = I2C_DRIVER_NAME,
-               .owner = THIS_MODULE,
                .pm = &i2c_nuvoton_pm_ops,
                .of_match_table = of_match_ptr(i2c_nuvoton_of_match),
        },