aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/mtk_snfi_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/mtk_snfi_spi.c')
-rw-r--r--drivers/spi/mtk_snfi_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/mtk_snfi_spi.c b/drivers/spi/mtk_snfi_spi.c
index 2a894765159..c30c8f4ff6d 100644
--- a/drivers/spi/mtk_snfi_spi.c
+++ b/drivers/spi/mtk_snfi_spi.c
@@ -253,7 +253,7 @@ static int mtk_snfi_spi_probe(struct udevice *bus)
struct mtk_snfi_priv *priv = dev_get_priv(bus);
int ret;
- priv->base = (void __iomem *)devfdt_get_addr(bus);
+ priv->base = dev_read_addr_ptr(bus);
if (!priv->base)
return -EINVAL;