[PATCH 6/6] usb: xhci: mvebu: Use dev_read_addr_index()

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue May 26 11:10:02 CEST 2026


From: Peng Fan <peng.fan at nxp.com>

Use dev_read_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/usb/host/xhci-mvebu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c
index 12dc61aee9d..bd17fe717cc 100644
--- a/drivers/usb/host/xhci-mvebu.c
+++ b/drivers/usb/host/xhci-mvebu.c
@@ -59,7 +59,7 @@ static int xhci_usb_probe(struct udevice *dev)
 	}
 
 	/* Enable USB xHCI (VBUS, reset etc) in board specific code */
-	board_xhci_enable(devfdt_get_addr_index(dev, 1));
+	board_xhci_enable(dev_read_addr_index(dev, 1));
 
 	return xhci_register(dev, ctx->hcd, hcor);
 }

-- 
2.51.0



More information about the U-Boot mailing list