Merge tag 'tpm-30112021' of https://source.denx.de/u-boot/custodians/u-boot-tpm
TPM2 API fixes Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -378,8 +378,14 @@ out:
|
||||
int tpm_tis_cleanup(struct udevice *dev)
|
||||
{
|
||||
struct tpm_chip *chip = dev_get_priv(dev);
|
||||
int ret;
|
||||
|
||||
ret = tpm_tis_request_locality(dev, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
tpm_tis_ready(dev);
|
||||
|
||||
tpm_tis_release_locality(dev, chip->locality);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -120,7 +120,7 @@ static int tpm_tis_remove(struct udevice *dev)
|
||||
struct tpm_tis_chip_data *drv_data = (void *)dev_get_driver_data(dev);
|
||||
int ret;
|
||||
|
||||
ret = tpm_tis_cleanup(dev);
|
||||
ret = tpm_tis_cleanup(dev);
|
||||
|
||||
iounmap(drv_data->iobase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user