[PATCH 1/2] pinctrl: at91: Use dev_read_addr_index()

peng.fan at nxp.com peng.fan at nxp.com
Mon May 25 06:00:32 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/pinctrl/pinctrl-at91.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index 2938635ed95..50a130d700f 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -527,7 +527,7 @@ static int at91_pinctrl_probe(struct udevice *dev)
 
 	if (list_empty(&dev->child_head)) {
 		for (index = 0; index < MAX_GPIO_BANKS; index++) {
-			addr_base = devfdt_get_addr_index(dev, index);
+			addr_base = dev_read_addr_index(dev, index);
 			if (addr_base == FDT_ADDR_T_NONE)
 				break;
 
-- 
2.51.0



More information about the U-Boot mailing list