From: Philipp Tomsich Date: Mon, 11 Sep 2017 20:04:19 +0000 (+0200) Subject: rockchip: pinctrl: rk3368: Convert to livetree X-Git-Tag: v2017.11-rc1~87^2~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2edb968c4dbd116aaddf994ec540eb4ef4d9cee;p=u-boot rockchip: pinctrl: rk3368: Convert to livetree Update the pinctrl driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3368.c b/drivers/pinctrl/rockchip/pinctrl_rk3368.c index 81ce2e31a7..b1f5704164 100644 --- a/drivers/pinctrl/rockchip/pinctrl_rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl_rk3368.c @@ -632,8 +632,7 @@ static int rk3368_pinctrl_get_periph_id(struct udevice *dev, u32 cell[3]; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(periph), - "interrupts", cell, ARRAY_SIZE(cell)); + ret = dev_read_u32_array(periph, "interrupts", cell, ARRAY_SIZE(cell)); if (ret < 0) return -EINVAL;