From: Peng Fan <[email protected]> Use dev_read_addr_ptr() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers.
No functional changes. Signed-off-by: Peng Fan <[email protected]> --- drivers/spi/mtk_snor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/mtk_snor.c b/drivers/spi/mtk_snor.c index 40fc1826db6..a54eca8acda 100644 --- a/drivers/spi/mtk_snor.c +++ b/drivers/spi/mtk_snor.c @@ -528,7 +528,7 @@ static int mtk_snor_probe(struct udevice *bus) u8 *buffer; int ret; - priv->base = devfdt_get_addr_ptr(bus); + priv->base = dev_read_addr_ptr(bus); if (!priv->base) return -EINVAL; -- 2.51.0

