tpm: replace tpm_gen_interrupt() with tpm_tis_gen_interrupt()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 12 Jun 2016 13:42:09 +0000 (16:42 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 15 Sep 2016 13:04:21 +0000 (16:04 +0300)
commiteb5854e764b91a71106f159a4ac264ffed1eebf2
tree4d888861aa2e9211cfa7c1d92097f7cfb5a8f79d
parentd4abd9565dd6da1ab2a402af77617d32949ed06c
tpm: replace tpm_gen_interrupt() with tpm_tis_gen_interrupt()

Since tpm_gen_interrupt() is only used in tpm_tis_core.c this commit
replaces it with an internal tpm_tis_gen_interrupt(). The semantics
also changed in a way that on a system error the driver initialization
is failed.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c
drivers/char/tpm/tpm_tis_core.c