u-boot-brain/drivers/core
Simon Glass 4805a7af8e 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>
2019-10-08 13:57:38 +08:00
..
device-remove.c device: expose the functions used to remove and unbind children of a device 2018-08-21 16:21:37 +02:00
device.c dm: core: Call ofdata_to_platdata() with of-platdata 2019-10-08 13:57:38 +08:00
devres.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dump.c dm: Tidy up 'dm tree' output when there are many devices 2019-01-14 17:47:13 -07:00
fdtaddr.c dm: core: add support for getting register address and size 2019-08-12 13:33:39 -04:00
Kconfig Kconfig: Varios: Fix more SPL, TPL dependencies 2019-08-26 11:46:29 -04:00
lists.c dm: core: Use U-Boot logging instead of pr_debug() 2019-10-08 13:57:37 +08:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
of_access.c dm: core: Add of_alias_get_highest_id() 2019-02-08 06:24:57 +01:00
of_addr.c dm: core: Introduce xxx_translate_dma_address() 2019-07-22 09:21:28 +02:00
of_extra.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.c dm: core: Correct bad cast in ofnode_get_addr_size_index() 2019-10-03 21:10:53 +08:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
read.c dm: core: Add functions to read 64-bit dt properties 2019-09-06 10:39:15 +08:00
regmap.c regmap: Add API regmap_init_mem_index() 2019-07-17 11:12:08 -04:00
root.c dm: core: Decouple DM from DT 2019-09-02 17:38:42 +02:00
simple-bus.c simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver 2019-04-23 20:26:43 -06:00
syscon-uclass.c syscon: update syscon_regmap_lookup_by_phandle 2019-04-11 20:10:05 -06:00
uclass.c dm: core: Correct the return value for uclass_find_first_device() 2019-10-08 13:57:38 +08:00
util.c dm: core: Decouple DM from DT 2019-09-02 17:38:42 +02:00