[PATCH] mtd: hbmc-am654: Use dev_remap_addr_index()
peng.fan at nxp.com
peng.fan at nxp.com
Wed May 27 04:37:26 CEST 2026
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>
---
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) {
--
2.51.0
More information about the U-Boot
mailing list