tpm: Get rid of module locking
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 29 Feb 2016 13:53:01 +0000 (08:53 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
commit2072df40ec19d9703adfcdbd15f30c879bb65b2a
tree0c2891821b65b34151f0a299d739b793d1f4d91a
parent4e26195f240d73150e8308ae42874702e3df8d2c
tpm: Get rid of module locking

Now that the tpm core has strong locking around 'ops' it is possible
to remove a TPM driver, module and all, even while user space still
has things like /dev/tpmX open. For consistency and simplicity, drop
the module locking entirely.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-chip.c