pinctrl: at91: Use dev_read_addr_index()

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@nxp.com>
This commit is contained in:
Peng Fan
2026-05-25 12:00:32 +08:00
committed by Tom Rini
parent 55550b4292
commit ef6b3ccf59

View File

@@ -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;