[PATCH 4/6] usb: host: xhci: Use dev_remap_addr_name()
Peng Fan (OSS)
peng.fan at oss.nxp.com
Tue May 26 11:10:00 CEST 2026
From: Peng Fan <peng.fan at nxp.com>
Use dev_remap_addr_name() 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/usb/host/xhci-mtk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index ffe80c0bbdc..27caa3ebf86 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -202,13 +202,13 @@ static int xhci_mtk_ofdata_get(struct mtk_xhci *mtk)
struct udevice *dev = mtk->dev;
int ret = 0;
- mtk->hcd = devfdt_remap_addr_name(dev, "mac");
+ mtk->hcd = dev_remap_addr_name(dev, "mac");
if (!mtk->hcd) {
dev_err(dev, "failed to get xHCI base address\n");
return -ENXIO;
}
- mtk->ippc = devfdt_remap_addr_name(dev, "ippc");
+ mtk->ippc = dev_remap_addr_name(dev, "ippc");
if (!mtk->ippc) {
dev_err(dev, "failed to get IPPC base address\n");
return -ENXIO;
--
2.51.0
More information about the U-Boot
mailing list