summaryrefslogtreecommitdiff
path: root/drivers/core/uclass.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-10 08:04:53 -0500
committerTom Rini <trini@konsulko.com>2019-02-10 08:04:53 -0500
commit2e8560797fc69a34c330a875da4f5d2992452f1e (patch)
treefadec67e667ef3d72d62cef98aa3b3b19b2dd4a5 /drivers/core/uclass.c
parent97276a91db8e98f081a40ddf9dc8f81d4032a756 (diff)
parent4a1fa524e95a1c81674d8a368035b522fd4a99d6 (diff)
Merge branch '2019-02-08-master-imports'
- bcm6345 watchdog, bcm63158/bcm963158 initial support. - Various TI platform resyncs and improvements. - FDT support in Android-format images. - stm32mp1 improvements.
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r--drivers/core/uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index a622f07941..fc3157de39 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -225,7 +225,7 @@ int uclass_find_first_device(enum uclass_id id, struct udevice **devp)
if (ret)
return ret;
if (list_empty(&uc->dev_head))
- return 0;
+ return -ENODEV;
*devp = list_first_entry(&uc->dev_head, struct udevice, uclass_node);