@@ -125,8 +125,7 @@ static u8 i2c_atmel_read_status(struct tpm_chip *chip)
/* Once the TPM has completed the command the command remains readable
* until another command is issued. */
rc = i2c_master_recv(client, priv->buffer, sizeof(priv->buffer));
- dev_dbg(&chip->dev,
- "%s: sts=%d", __func__, rc);
+ dev_dbg(&chip->dev, "%s: sts=%d", __func__, rc);
if (rc <= 0)
return 0;
@@ -192,6 +191,7 @@ static int i2c_atmel_probe(struct i2c_client *client,
static int i2c_atmel_remove(struct i2c_client *client)
{
struct tpm_chip *chip = i2c_get_clientdata(client);
+
tpm_chip_unregister(chip);
return 0;
}
Few code style fixes. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> --- drivers/char/tpm/tpm_i2c_atmel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)