tpm: use tpm_try_get_ops() in tpm-sysfs.c.
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 3 Oct 2019 18:46:22 +0000 (21:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:56:27 +0000 (18:56 +0200)
commitd598712712e4cd0227a42c5ad507fb38b15b748a
tree95bdda28486c6714a7448c33d3e63617d28201fa
parent6cad9d0cf87b95b10f3f4d7826c2c15e45e2a277
tpm: use tpm_try_get_ops() in tpm-sysfs.c.

commit 2677ca98ae377517930c183248221f69f771c921 upstream

Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving
other decorations (locking, localities, power management for example)
inside it. This direction can be of course taken only after other call
sites for tpm_transmit() have been treated in the same way.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm-sysfs.c