aboutsummaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorYang Li2022-07-01 17:13:22 +0800
committerJarkko Sakkinen2022-08-03 23:56:20 +0300
commitffd056fa31779756d7146fb17325fb7872c98812 (patch)
treee39d08efdbfb230d42f3d20cf98e6ee6f84dc43a /drivers/char
parent0815291a8fd66cdcf7db1445d4d99b0d16065829 (diff)
tpm: fix platform_no_drv_owner.cocci warning
Eliminate the following coccicheck warning: ./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tpm/tpm_tis_i2c.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c
index 8e0686fe4eb1..ba0911b1d1ff 100644
--- a/drivers/char/tpm/tpm_tis_i2c.c
+++ b/drivers/char/tpm/tpm_tis_i2c.c
@@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match);
static struct i2c_driver tpm_tis_i2c_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "tpm_tis_i2c",
.pm = &tpm_tis_pm,
.of_match_table = of_match_ptr(of_tis_i2c_match),