]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: at91: Use dev_read_addr_index()
authorPeng Fan <peng.fan@nxp.com>
Mon, 25 May 2026 04:00:32 +0000 (12:00 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 9 Jun 2026 20:53:34 +0000 (14:53 -0600)
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>
drivers/pinctrl/pinctrl-at91.c

index 2938635ed951e2654e200258b920de5733457474..50a130d700f1f2f9a7b1ab7b9ab0f570af46360e 100644 (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;