]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: use devfdt_get_addr_ptr when cast to pointer
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:32:44 +0000 (01:32 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commit0d01046ea366842d4f01e693579c33229eb523d8
treee32e0747a65e2d82811162159f173798da98e163
parent320a1938b6f7ea1ad89f7e18c7fef5898f98fc5b
drivers: use devfdt_get_addr_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_ptr instead of the devfdt_get_addr function in
the various files in the drivers directory that cast to a pointer.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/at91/sama7g5.c
drivers/clk/at91/sckc.c
drivers/spi/mtk_snor.c
drivers/spi/mtk_spim.c