summaryrefslogtreecommitdiff
path: root/cmd/tpm.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-03-14 23:21:44 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-14 23:21:44 (GMT)
commit88033d737d9f46e7eebda6a8f9770957eb9aae9c (patch)
tree0b7c3bc6caa5ab4b7f8e88f05ce51ace87f25890 /cmd/tpm.c
parent9f0f432c0aea1e70959a0c06938459d3175a36b0 (diff)
parent608e399fdef82e983db44c5cb8f5e772bba870e2 (diff)
downloadu-boot-88033d737d9f46e7eebda6a8f9770957eb9aae9c.tar.xz
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'cmd/tpm.c')
-rw-r--r--cmd/tpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/tpm.c b/cmd/tpm.c
index 6edf3e9..312503f 100644
--- a/cmd/tpm.c
+++ b/cmd/tpm.c
@@ -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;
}