commit | 75ec16f933d0a05553aadaca2b3e1d9acdb64f74 | [log] [tgz] |
---|---|---|
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | Fri Feb 01 16:01:07 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Sat Feb 09 07:51:00 2019 -0500 |
tree | 5505a39da34f193155977a5d907e4148ce627ea9 | |
parent | 9e0d2d6825d9df99b594582fcb862328d3887d4d [diff] |
dm: device: fail uclass_find_first_device() if list_empty While uclass_find_device() fails with -ENODEV in case of list_empty strangely uclass_find_first_device() returns 0. Fix uclass_find_first_device() to also fail with -ENODEV instead. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Simon Glass <sjg@chromium.org>