diff options
author | Johan Jonker <jbx6244@gmail.com> | 2023-03-13 01:32:44 +0100 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-05-06 17:28:18 +0800 |
commit | 0d01046ea366842d4f01e693579c33229eb523d8 (patch) | |
tree | e32e0747a65e2d82811162159f173798da98e163 /drivers/spi/mtk_snor.c | |
parent | 320a1938b6f7ea1ad89f7e18c7fef5898f98fc5b (diff) | |
download | u-boot-0d01046ea366842d4f01e693579c33229eb523d8.tar.gz |
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>
Diffstat (limited to 'drivers/spi/mtk_snor.c')
-rw-r--r-- | drivers/spi/mtk_snor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/mtk_snor.c b/drivers/spi/mtk_snor.c index 04f588a75d..4b7d4a6e07 100644 --- a/drivers/spi/mtk_snor.c +++ b/drivers/spi/mtk_snor.c @@ -470,7 +470,7 @@ static int mtk_snor_probe(struct udevice *bus) int ret; u32 reg; - priv->base = (void __iomem *)devfdt_get_addr(bus); + priv->base = devfdt_get_addr_ptr(bus); if (!priv->base) return -EINVAL; |