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