diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-07-10 01:32:29 -0400 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2015-10-18 19:05:27 -0400 |
commit | 09e23a4a5dc39ef874403f3f6fa419f49db3677a (patch) | |
tree | 20f08d77dcdb978a76d1c8575b4d177b117743c8 /drivers/char | |
parent | 9e5d4af458057344e8cc35b09b2f7a9c9e95d81f (diff) |
char: Drop owner assignment from i2c_driver
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tpm/st33zp24/i2c.c | 1 | ||||
-rw-r--r-- | drivers/char/tpm/tpm_i2c_atmel.c | 1 | ||||
-rw-r--r-- | drivers/char/tpm/tpm_i2c_infineon.c | 1 | ||||
-rw-r--r-- | drivers/char/tpm/tpm_i2c_nuvoton.c | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index ad1ee180e0c2..309d2767c6a1 100644 --- a/drivers/char/tpm/st33zp24/i2c.c +++ b/drivers/char/tpm/st33zp24/i2c.c | |||
@@ -258,7 +258,6 @@ static SIMPLE_DEV_PM_OPS(st33zp24_i2c_ops, st33zp24_pm_suspend, | |||
258 | 258 | ||
259 | static struct i2c_driver st33zp24_i2c_driver = { | 259 | static struct i2c_driver st33zp24_i2c_driver = { |
260 | .driver = { | 260 | .driver = { |
261 | .owner = THIS_MODULE, | ||
262 | .name = TPM_ST33_I2C, | 261 | .name = TPM_ST33_I2C, |
263 | .pm = &st33zp24_i2c_ops, | 262 | .pm = &st33zp24_i2c_ops, |
264 | .of_match_table = of_match_ptr(of_st33zp24_i2c_match), | 263 | .of_match_table = of_match_ptr(of_st33zp24_i2c_match), |
diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index 7a0ca78ad3c6..8dfb88b9739c 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c | |||
@@ -217,7 +217,6 @@ static struct i2c_driver i2c_atmel_driver = { | |||
217 | .remove = i2c_atmel_remove, | 217 | .remove = i2c_atmel_remove, |
218 | .driver = { | 218 | .driver = { |
219 | .name = I2C_DRIVER_NAME, | 219 | .name = I2C_DRIVER_NAME, |
220 | .owner = THIS_MODULE, | ||
221 | .pm = &i2c_atmel_pm_ops, | 220 | .pm = &i2c_atmel_pm_ops, |
222 | .of_match_table = of_match_ptr(i2c_atmel_of_match), | 221 | .of_match_table = of_match_ptr(i2c_atmel_of_match), |
223 | }, | 222 | }, |
diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index 33c5f360ab01..63d5d22e9e60 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c | |||
@@ -711,7 +711,6 @@ static struct i2c_driver tpm_tis_i2c_driver = { | |||
711 | .remove = tpm_tis_i2c_remove, | 711 | .remove = tpm_tis_i2c_remove, |
712 | .driver = { | 712 | .driver = { |
713 | .name = "tpm_i2c_infineon", | 713 | .name = "tpm_i2c_infineon", |
714 | .owner = THIS_MODULE, | ||
715 | .pm = &tpm_tis_i2c_ops, | 714 | .pm = &tpm_tis_i2c_ops, |
716 | .of_match_table = of_match_ptr(tpm_tis_i2c_of_match), | 715 | .of_match_table = of_match_ptr(tpm_tis_i2c_of_match), |
717 | }, | 716 | }, |
diff --git a/drivers/char/tpm/tpm_i2c_nuvoton.c b/drivers/char/tpm/tpm_i2c_nuvoton.c index 9d42b7d78e50..847f1597fe9b 100644 --- a/drivers/char/tpm/tpm_i2c_nuvoton.c +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c | |||
@@ -641,7 +641,6 @@ static struct i2c_driver i2c_nuvoton_driver = { | |||
641 | .remove = i2c_nuvoton_remove, | 641 | .remove = i2c_nuvoton_remove, |
642 | .driver = { | 642 | .driver = { |
643 | .name = I2C_DRIVER_NAME, | 643 | .name = I2C_DRIVER_NAME, |
644 | .owner = THIS_MODULE, | ||
645 | .pm = &i2c_nuvoton_pm_ops, | 644 | .pm = &i2c_nuvoton_pm_ops, |
646 | .of_match_table = of_match_ptr(i2c_nuvoton_of_match), | 645 | .of_match_table = of_match_ptr(i2c_nuvoton_of_match), |
647 | }, | 646 | }, |