u-boot/drivers/core
Sean Anderson 6784cb35f5 dm: core: Fix uninitialized return value from dm_scan_fdt_node
If there are no nodes or if all nodes are disabled, this function would
return err without setting it first. Fix this by initializing err to
zero.

Fixes: 94f7afdf7e ("dm: core: Ignore disabled devices when binding")

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-04-29 03:23:39 -07:00
..
acpi.c dm: core: Use -ENOSPC in acpi_get_path() 2021-04-06 16:33:19 +12:00
device-remove.c Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
device.c dm: core: Use separate priv/plat data region 2021-03-26 17:03:09 +13:00
devres.c dm: core: Access device flags through functions 2021-01-05 12:24:41 -07:00
dump.c dm: core: Access device flags through functions 2021-01-05 12:24:41 -07:00
fdtaddr.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig test: dm: Add a test case for simple-bus <ranges> 2021-04-15 14:22:17 +05:30
lists.c dm: core: Add logging when lists_bind_fdt() fails 2021-01-05 12:24:41 -07:00
Makefile dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
of_access.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
of_addr.c dm: error handling dev_get_dma_range() 2021-03-22 19:23:26 +13:00
of_extra.c of: extra: Introduce ofnode_phy_is_fixed_link() API 2021-04-15 14:22:17 +05:30
ofnode.c dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
read.c dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01: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 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
root.c dm: core: Fix uninitialized return value from dm_scan_fdt_node 2021-04-29 03:23:39 -07:00
simple-bus.c dm: core: Correctly read <ranges> of simple-bus 2021-04-15 14:22:17 +05:30
simple-pm-bus.c simple-pm-bus: Use -ENOSYS for checking missing system call 2021-04-06 16:33:19 +12:00
syscon-uclass.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
uclass.c dm: core: Drop uclass_find_device_by_phandle() with of-platdata 2021-03-26 17:03:08 +13:00
util.c dm: core: Allow dm_warn() to be used in SPL 2020-10-29 14:42:17 -06:00