diff options
Diffstat (limited to 'cmd/tpm.c')
-rw-r--r-- | cmd/tpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -447,8 +447,8 @@ static int get_tpm(struct udevice **devp) { int rc; - rc = uclass_first_device(UCLASS_TPM, devp); - if (rc || !*devp) { + rc = uclass_first_device_err(UCLASS_TPM, devp); + if (rc) { printf("Could not find TPM (ret=%d)\n", rc); return CMD_RET_FAILURE; } |