OSDN Git Service

tpm: use tpm_try_get_ops() in tpm-sysfs.c.
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 4 Nov 2018 09:38:27 +0000 (11:38 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:18 +0000 (09:48 +0200)
commit2677ca98ae377517930c183248221f69f771c921
treed944cb582362dd1536f2ca75e60f547facc81949
parent5faafbab77e37290daa023ba2002e0d611682397
tpm: use tpm_try_get_ops() in tpm-sysfs.c.

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>
drivers/char/tpm/tpm-sysfs.c