tpm: delete the TPM_TIS_CLK_ENABLE flag
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 25 Dec 2017 02:22:49 +0000 (03:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 09:54:24 +0000 (10:54 +0100)
commit1ef7d99cc8972e67438518a7529a67a29cb40720
tree9387f844df352b204ce7c1cf4e8cd8bd9628cff4
parent7cea3381216a304e12dc21fb050e51bf62ed7a11
tpm: delete the TPM_TIS_CLK_ENABLE flag

commit 764325add6c2ad1641199edde7b2995495fc2d7c upstream.

This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell
systems, but the only way this can happen is if the code is not correct.

So it's an unnecessary check that just makes the code harder to read.

Suggested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis.c
drivers/char/tpm/tpm_tis_core.c
drivers/char/tpm/tpm_tis_core.h