Skip to content

Commit 640843a

Browse files
larsclausenPeterHuewe
authored andcommitted
tpm: tpm_i2c_infinion: Don't modify i2c_client->driver
The I2C client driver is not supposed to modify the client's driver pointer, this is handled by the I2C core. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
1 parent 9b97b6c commit 640843a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/char/tpm/tpm_i2c_infineon.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ struct tpm_inf_dev {
7474
};
7575

7676
static struct tpm_inf_dev tpm_dev;
77-
static struct i2c_driver tpm_tis_i2c_driver;
7877

7978
/*
8079
* iic_tpm_read() - read from TPM register
@@ -744,11 +743,9 @@ static int tpm_tis_i2c_probe(struct i2c_client *client,
744743
return -ENODEV;
745744
}
746745

747-
client->driver = &tpm_tis_i2c_driver;
748746
tpm_dev.client = client;
749747
rc = tpm_tis_i2c_init(&client->dev);
750748
if (rc != 0) {
751-
client->driver = NULL;
752749
tpm_dev.client = NULL;
753750
rc = -ENODEV;
754751
}

0 commit comments

Comments
 (0)