diff options
| author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-12-01 13:32:59 -0500 |
|---|---|---|
| committer | Peter Huewe <peterhuewe@gmx.de> | 2015-01-17 08:00:08 -0500 |
| commit | 00820e8207b9b87fe0e34062876696dd6d326b2d (patch) | |
| tree | 67acbf99571e1bb899207261cf458166cf66cfa8 /drivers/char/tpm | |
| parent | c3804b8cdbd2abb50cf87318b13660dff46b7fe8 (diff) | |
tpm/tpm_i2c_stm_st33: Remove useless i2c read on interrupt registers
Remove useless i2c read on TPM_INT_ENABLE and TPM_INT_STATUS
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'drivers/char/tpm')
| -rw-r--r-- | drivers/char/tpm/tpm_i2c_stm_st33.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c index eb0244a2ec9d..1d589e06e0dd 100644 --- a/drivers/char/tpm/tpm_i2c_stm_st33.c +++ b/drivers/char/tpm/tpm_i2c_stm_st33.c | |||
| @@ -783,10 +783,6 @@ tpm_stm_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 783 | goto _tpm_clean_answer; | 783 | goto _tpm_clean_answer; |
| 784 | } | 784 | } |
| 785 | 785 | ||
| 786 | ret = I2C_READ_DATA(tpm_dev, TPM_INT_ENABLE, &intmask, 1); | ||
| 787 | if (ret < 0) | ||
| 788 | goto _tpm_clean_answer; | ||
| 789 | |||
| 790 | intmask |= TPM_INTF_CMD_READY_INT | 786 | intmask |= TPM_INTF_CMD_READY_INT |
| 791 | | TPM_INTF_STS_VALID_INT | 787 | | TPM_INTF_STS_VALID_INT |
| 792 | | TPM_INTF_DATA_AVAIL_INT; | 788 | | TPM_INTF_DATA_AVAIL_INT; |
| @@ -801,10 +797,6 @@ tpm_stm_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 801 | if (ret < 0) | 797 | if (ret < 0) |
| 802 | goto _tpm_clean_answer; | 798 | goto _tpm_clean_answer; |
| 803 | 799 | ||
| 804 | ret = I2C_READ_DATA(tpm_dev, TPM_INT_STATUS, &intmask, 1); | ||
| 805 | if (ret < 0) | ||
| 806 | goto _tpm_clean_answer; | ||
| 807 | |||
| 808 | chip->vendor.irq = client->irq; | 800 | chip->vendor.irq = client->irq; |
| 809 | 801 | ||
| 810 | disable_irq_nosync(chip->vendor.irq); | 802 | disable_irq_nosync(chip->vendor.irq); |
