From: Peng Fan <[email protected]>

Use dev_remap_addr_name() 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]>
Signed-off-by: Peng Fan <[email protected]>
---
 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

Reply via email to