aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/tpm/tpm-sysfs.c
diff options
context:
space:
mode:
authorGravatar Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> 2019-07-08 17:56:39 +0300
committerGravatar Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> 2019-09-02 17:08:35 +0300
commit28eba2fddd5a4292bf9e3dc55193728f3055b782 (patch)
tree34b71dab3ca12fd84c2a862284109ddc8eefa473 /drivers/char/tpm/tpm-sysfs.c
parenttpm_tis_core: Set TPM_CHIP_FLAG_IRQ before probing for interrupts (diff)
downloadlinux-28eba2fddd5a4292bf9e3dc55193728f3055b782.tar.gz
linux-28eba2fddd5a4292bf9e3dc55193728f3055b782.tar.bz2
linux-28eba2fddd5a4292bf9e3dc55193728f3055b782.zip
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-sysfs.c')
-rw-r--r--drivers/char/tpm/tpm-sysfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/tpm/tpm-sysfs.c b/drivers/char/tpm/tpm-sysfs.c
index d9caedda075b..edfa89160010 100644
--- a/drivers/char/tpm/tpm-sysfs.c
+++ b/drivers/char/tpm/tpm-sysfs.c
@@ -329,16 +329,9 @@ static const struct attribute_group tpm_dev_group = {
void tpm_sysfs_add_device(struct tpm_chip *chip)
{
- /* XXX: If you wish to remove this restriction, you must first update
- * tpm_sysfs to explicitly lock chip->ops.
- */
if (chip->flags & TPM_CHIP_FLAG_TPM2)
return;
- /* The sysfs routines rely on an implicit tpm_try_get_ops, device_del
- * is called before ops is null'd and the sysfs core synchronizes this
- * removal so that no callbacks are running or can run again
- */
WARN_ON(chip->groups_cnt != 0);
chip->groups[chip->groups_cnt++] = &tpm_dev_group;
}