summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/ath79/pinctrl_ar933x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/ath79/pinctrl_ar933x.c')
-rw-r--r--drivers/pinctrl/ath79/pinctrl_ar933x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c
index e3f64b6..fccc7c4 100644
--- a/drivers/pinctrl/ath79/pinctrl_ar933x.c
+++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c
@@ -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;