Skip to content

Commit ffd056f

Browse files
Yang Lijarkkojs
authored andcommitted
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 <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 0815291 commit ffd056f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/char/tpm/tpm_tis_i2c.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match);
376376

377377
static struct i2c_driver tpm_tis_i2c_driver = {
378378
.driver = {
379-
.owner = THIS_MODULE,
380379
.name = "tpm_tis_i2c",
381380
.pm = &tpm_tis_pm,
382381
.of_match_table = of_match_ptr(of_tis_i2c_match),

0 commit comments

Comments
 (0)