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: http://review.tizen.org/git/?a=commitdiff_plain;h=d2edb968c4dbd116aaddf994ec540eb4ef4d9cee;p=platform%2Fkernel%2Fu-boot.git 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 81ce2e3..b1f5704 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;