u-boot/drivers/core
Marcel Ziswiler f388564965 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>
2019-02-09 07:51:00 -05: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: device: Allow using uclass_find_device_by_seq() without OF_CONTROL 2018-12-10 06:05:32 +01: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 functions to get/remap I/O addresses by name 2018-12-05 06:06:44 -07:00
Kconfig drivers: Kconfig: spelling fixes 2019-01-18 09:16:15 -05:00
lists.c dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -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 ofnode: add ofnode_by_prop_value() 2018-09-18 08:12:21 -06:00
of_addr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
of_extra.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.c core: ofnode: Fix ofnode_get_addr_index function 2018-11-29 09:30:06 -07:00
read.c dm: core: Add a function to read into a unsigned int 2018-12-13 16:32:49 -07:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c regmap: Add endianness support 2018-11-14 09:16:27 -08:00
root.c drivers: core: nullify gd->dm_root after dm_uninit() 2018-12-10 07:23:45 +01:00
simple-bus.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syscon-uclass.c syscon: update syscon_node_to_regmap to use the DM functions 2018-12-15 11:49:56 -05:00
uclass.c dm: device: fail uclass_find_first_device() if list_empty 2019-02-09 07:51:00 -05:00
util.c dm: util: Add a livetree equivalent API of dm_fdt_pre_reloc() 2018-11-14 09:16:27 -08:00