projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
armv8: fsl-layerscape: Update ddr erratum a008336
[oweals/u-boot.git]
/
cmd
/
tpm.c
diff --git
a/cmd/tpm.c
b/cmd/tpm.c
index 6edf3e9dc35de128f7a8dfa221da824d1979846a..312503fb96f9bfaa08407b62127f611081ec4db7 100644
(file)
--- 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;
}