Jarkko Sakkinen dcbeab1946 tpm: fix crash in tpm_tis deinitialization
rmmod crashes the driver because tpm_chip_unregister() already sets ops
to NULL. This commit fixes the issue by moving tpm2_shutdown() to
tpm_chip_unregister(). This commit is also cleanup because it removes
duplicate code from tpm_crb and tpm_tis to the core.

Fixes: 4d3eac5e156a ("tpm: Provide strong locking for device removal")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
2016-06-25 17:26:35 +03:00
..
2016-06-25 17:26:35 +03:00
2007-08-22 19:52:44 -07:00
2016-06-25 17:26:35 +03:00
2016-06-25 17:26:35 +03:00
2016-06-25 17:26:35 +03:00
2016-06-25 17:26:35 +03:00
2016-06-25 17:26:35 +03:00
2016-06-25 17:26:35 +03:00