tpm: Fix suspend regression
Fix the suspend regression due to the wrong way of retrieving the
chip structure. The suspend functions are attached to the hardware
device, not the chip and thus must rely on drvdata.
Fixes: e89f8b1ade9cc1a ("tpm: Remove all uses of drvdata from the TPM Core")
Reported-by:  Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by:
Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by:  Stefan Berger <stefanb@linux.vnet.ibm.com>
Tested-by:
Stefan Berger <stefanb@linux.vnet.ibm.com>
Tested-by:  Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by:
Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by:  Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by:
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by:  Jeremiah Mahler <jmmahler@gmail.com>
Acked-by:
Jeremiah Mahler <jmmahler@gmail.com>
Acked-by:  Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Signed-off-by:
Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Signed-off-by:  Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Loading
Please register or sign in to comment
