On 6/2/26 6:20 AM, Peng Fan (OSS) wrote:
> 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.
> 
> Reviewed-by: Simon Glass <[email protected]>
> Reviewed-by: Weijie Gao <[email protected]>
> 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;
>  
> 

Acked-by: David Lechner <[email protected]>

Reply via email to