[PATCH v2 3/5] spi: mtk_snor: Use dev_read_addr_ptr()
David Lechner
dlechner at baylibre.com
Wed Jun 10 17:09:54 CEST 2026
On 6/2/26 6:20 AM, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Use dev_read_addr_ptr() which supports both live device tree and flat DT
> backends, avoiding direct dependency on devfdt_* helpers.
>
> No functional changes.
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Weijie Gao <weijie.gao at mediatek.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
> 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;
>
>
Acked-by: David Lechner <dlechner at baylibre.com>
More information about the U-Boot
mailing list