dm: core: Correct low cell in ofnode_read_pci_addr()
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:46 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 3 Oct 2019 13:10:11 +0000 (21:10 +0800)
commite587886a6112e476a74a26e6cf7068a23723097c
treeae16e247a479c933aeb3df8faba938e75d3a3317
parentea4316cdb340ce1c05db5d6a869d1840dad68508
dm: core: Correct low cell in ofnode_read_pci_addr()

This reads the low cell of the PCI address from the wrong cell. Fix it.
Also fix the function that this code came from.

Fixes: 9e51204527 (dm: core: Add operations on device tree references)
Fixes: 4ea5243a3a (fdt: fix fdtdec_get_pci_addr() for CONFIG_PHYS_64BIT)
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/ofnode.c
lib/fdtdec.c