]> git.sur5r.net Git - u-boot/blobdiff - drivers/pinctrl/ath79/pinctrl_qca953x.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / pinctrl / ath79 / pinctrl_qca953x.c
index d02597e968aca76fd1edc5b1482e1030cad48ab9..a7f8c7082e80110fe623dc8bfbd08d8a67a1af9e 100644 (file)
@@ -95,7 +95,7 @@ static int qca953x_pinctrl_get_periph_id(struct udevice *dev,
        u32 cell[2];
        int ret;
 
-       ret = fdtdec_get_int_array(gd->fdt_blob, periph->of_offset,
+       ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(periph),
                                   "interrupts", cell, ARRAY_SIZE(cell));
        if (ret < 0)
                return -EINVAL;