[PATCH] mtd: hbmc-am654: Use dev_remap_addr_index()
Vignesh Raghavendra
vigneshr at ti.com
Thu May 28 10:35:21 CEST 2026
On 27/05/26 08:07, peng.fan at nxp.com wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Use dev_remap_addr_index() 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>
> ---
Reviewed-by: Vignesh Raghavendra <vigneshr at ti.com>
> drivers/mtd/hbmc-am654.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/hbmc-am654.c b/drivers/mtd/hbmc-am654.c
> index 98988a8e24d..1e71e91e0d1 100644
> --- a/drivers/mtd/hbmc-am654.c
> +++ b/drivers/mtd/hbmc-am654.c
> @@ -71,7 +71,7 @@ static int am654_hbmc_probe(struct udevice *dev)
> struct am654_hbmc_priv *priv = dev_get_priv(dev);
> int ret;
>
> - priv->mmiobase = devfdt_remap_addr_index(dev, 1);
> + priv->mmiobase = dev_remap_addr_index(dev, 1);
> if (dev_read_bool(dev, "mux-controls")) {
> ret = am654_select_hbmc(dev);
> if (ret) {
Thanks for the patch.
--
Regards
Vignesh
https://ti.com/opensource
More information about the U-Boot
mailing list