path: root/drivers/char/tpm/tpm-chip.c
diff options
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2019-07-08 17:56:39 +0300
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2019-09-02 17:08:35 +0300
commit28eba2fddd5a4292bf9e3dc55193728f3055b782 (patch)
tree34b71dab3ca12fd84c2a862284109ddc8eefa473 /drivers/char/tpm/tpm-chip.c
parent1ea32c83c699df32689d329b2415796b7bfc2f6e (diff)
tpm: Remove a deprecated comments about implicit sysfs locking
Remove all comments about implicit locking tpm-sysfs.c as the file was updated in Linux v5.1 to use explicit locking. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm/tpm-chip.c')
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/char/tpm/tpm-chip.c b/drivers/char/tpm/tpm-chip.c
index 4838c6a9f0f2..3d6d394a8661 100644
--- a/drivers/char/tpm/tpm-chip.c
+++ b/drivers/char/tpm/tpm-chip.c
@@ -287,12 +287,9 @@ static void tpm_devs_release(struct device *dev)
* @dev: device to which the chip is associated.
* Issues a TPM2_Shutdown command prior to loss of power, as required by the
- * TPM 2.0 spec.
- * Then, calls bus- and device- specific shutdown code.
+ * TPM 2.0 spec. Then, calls bus- and device- specific shutdown code.
- * XXX: This codepath relies on the fact that sysfs is not enabled for
- * TPM2: sysfs uses an implicit lock on chip->ops, so this could race if TPM2
- * has sysfs support enabled before TPM sysfs's implicit locking is fixed.
+ * Return: always 0 (i.e. success)
static int tpm_class_shutdown(struct device *dev)

Privacy Policy