commit | 0bb44276b4986a8d3174c1ad2e11133efd7149bb | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Sep 25 08:55:55 2019 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Oct 08 13:57:38 2019 +0800 |
tree | fa15885bb421070d45c336c3a2e02a9744de4dfe | |
parent | a91e48bdcf69ce2d0b395e5df0467bcf6f12392b [diff] |
dm: core: Correct the return value for uclass_find_first_device() This function returns -ENODEV when there is no device. This is inconsistent with other functions, such as uclass_find_next_device(), which returns 0. Update it and tidy up the incorrect '-1' values in the comments. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>