dm: core: Replace of_offset with accessor
[oweals/u-boot.git] / drivers / pinctrl / rockchip / pinctrl_rk3036.c
index 6aea856aa63f119b816ac62ac0879e7e711411f1..8d42584b31517431670f2669e0fe239d4d9ffc43 100644 (file)
@@ -205,7 +205,7 @@ static int rk3036_pinctrl_get_periph_id(struct udevice *dev,
        u32 cell[3];
        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;