Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-marvell into...
[platform/kernel/u-boot.git] / lib / tpm_api.c
index 687fc8b..4c66264 100644 (file)
@@ -144,7 +144,7 @@ u32 tpm_write_lock(struct udevice *dev, u32 index)
        if (is_tpm1(dev))
                return -ENOSYS;
        else if (is_tpm2(dev))
-               return -ENOSYS;
+               return tpm2_write_lock(dev, index);
        else
                return -ENOSYS;
 }