]> git.sur5r.net Git - u-boot/blobdiff - drivers/pinctrl/ath79/pinctrl_ar933x.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / pinctrl / ath79 / pinctrl_ar933x.c
index e3f64b63553cd6aaba741edd062b0f6ff8a668b8..fccc7c4b0668cfc8b15a6440fc0363989a9cf6fb 100644 (file)
@@ -75,7 +75,7 @@ static int ar933x_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;