tpm: suppress durations sysfs output if not read
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 23 Aug 2011 12:52:10 +0000 (08:52 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 23 Aug 2011 23:30:08 +0000 (09:30 +1000)
commit403d1d0319ad73b5ccf251745af4c7000331a76b
tree8f04137c79a0ab9c6e5104ba3bf439c6e9e6bb6a
parent8ad346c62ae91e6376fb9d199ef8557b0c814209
tpm: suppress durations sysfs output if not read

Suppress the output in the 'durations' sysfs entry if they were not read
during driver initialization. This is similar to other sysfs entries
that return nothing if for some reason sending the commands to the TPM
fails.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
drivers/char/tpm/tpm.c