mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user