Skip to content

Commit

Permalink
tpm: tpm_i2c_infinion: Don't modify i2c_client->driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Peter Huewe committed Jun 27, 2013
1 parent 9b97b6c commit 640843a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/char/tpm/tpm_i2c_infineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct tpm_inf_dev {
};

static struct tpm_inf_dev tpm_dev;
static struct i2c_driver tpm_tis_i2c_driver;

/*
* iic_tpm_read() - read from TPM register
Expand Down Expand Up @@ -744,11 +743,9 @@ static int tpm_tis_i2c_probe(struct i2c_client *client,
return -ENODEV;
}

client->driver = &tpm_tis_i2c_driver;
tpm_dev.client = client;
rc = tpm_tis_i2c_init(&client->dev);
if (rc != 0) {
client->driver = NULL;
tpm_dev.client = NULL;
rc = -ENODEV;
}
Expand Down

0 comments on commit 640843a

Please sign in to comment.