[PATCH 3/5] spi: mtk_snor: Use dev_read_addr_ptr()

Weijie Gao weijie.gao at mediatek.com
Wed May 27 08:10:06 CEST 2026


On Wed, 2026-05-27 at 10:35 +0800, 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.
> 
> 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;
>  
> 

Reviewed-by: Weijie Gao <weijie.gao at mediatek.com>




More information about the U-Boot mailing list