tpm: st33: Remove chip->data_buffer access from this driver
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Sun, 22 Sep 2013 22:03:28 +0000 (16:03 -0600)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 22 Oct 2013 17:42:38 +0000 (19:42 +0200)
commitcb996158dfe8a31377700f46b7f3d69ddc5ae1e4
tree7dcb44245682f9c56cc1bb14b42edb0928dd9f3b
parentd0a40174efb0b9d232ccd1cf127cb90a2120f55b
tpm: st33: Remove chip->data_buffer access from this driver

For some reason this driver thinks that chip->data_buffer needs
to be set before it can call tpm_pm_*. This is not true. data_buffer
is used only by /dev/tpmX, which is why it is managed exclusively
by the fops functions.

Cc: Mathias Leblanc <mathias.leblanc@st.com>
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
drivers/char/tpm/tpm_i2c_stm_st33.c