tpm: Use managed allocation for bios event log
authorEddie James <eajames@linux.ibm.com>
Thu, 26 Jan 2023 21:08:09 +0000 (15:08 -0600)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 13 Feb 2023 08:11:20 +0000 (10:11 +0200)
commit441b7152729f4a2bdb100135a58625fa0aeb69e4
tree7057c36aafa9fba9c1a645fbd7400782678aa4f8
parent40078327f6045185775eb7442a02f8edad2dea52
tpm: Use managed allocation for bios event log

Since the bios event log is freed in the device release function,
let devres handle the deallocation. This will allow other memory
allocation/mapping functions to be used for the bios event log.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/eventlog/acpi.c
drivers/char/tpm/eventlog/efi.c
drivers/char/tpm/eventlog/of.c
drivers/char/tpm/tpm-chip.c