]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: use devfdt_get_addr_index_ptr when cast to pointer
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:32:31 +0000 (01:32 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commit320a1938b6f7ea1ad89f7e18c7fef5898f98fc5b
treed15c2494b33e150f078044dbae9f8d284416150a
parent842fb5de424e53d097230a1d0ab6d7ba39b446c7
drivers: use devfdt_get_addr_index_ptr when cast to pointer

The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU
can expect 64-bit data from the device tree parser, so use
devfdt_get_addr_index_ptr instead of the devfdt_get_addr_index function
in the various files in the drivers directory that cast to a pointer.
As we are there also streamline the error response to -EINVAL on return.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-hsdk-cgu.c
drivers/ddr/altera/sdram_gen5.c
drivers/mmc/xenon_sdhci.c
drivers/net/mvpp2.c
drivers/pci/pcie_dw_mvebu.c
drivers/pci/pcie_imx.c
drivers/pci/pcie_layerscape_ep.c
drivers/phy/marvell/comphy_core.c
drivers/spi/cadence_qspi.c
drivers/usb/musb-new/ti-musb.c