tpm: fix the rollback in tpm_chip_register()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 29 Jan 2016 17:47:22 +0000 (09:47 -0800)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 10 Feb 2016 02:12:02 +0000 (04:12 +0200)
commit72c91ce8523ae5828fe5e4417ae0aaab53707a08
tree51d64a8bf86fb7c814f3c94927787ee2735f53f6
parent1bd047be37d95bf65a219f4931215f71878ac060
tpm: fix the rollback in tpm_chip_register()

Fixed the rollback and gave more self-documenting names for the
functions.

Fixes: d972b0523f ("tpm: fix call order in tpm-chip.c")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
cc: stable@vger.kernel.org
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
drivers/char/tpm/tpm-chip.c