aboutsummaryrefslogtreecommitdiff
path: root/drivers/pinctrl/rockchip/pinctrl_rk3036.c
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-06-07 18:45:57 +0200
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 12:13:43 +0200
commit9f4f914d7f9e3188189bafd73d8cfa743de85fd2 (patch)
treed62f2a43f55e8d4d3afc820d0def241e07935405 /drivers/pinctrl/rockchip/pinctrl_rk3036.c
parentd85ca029f257b53a96da6c2fb421e78a003a9943 (diff)
downloadu-boot-9f4f914d7f9e3188189bafd73d8cfa743de85fd2.zip
u-boot-9f4f914d7f9e3188189bafd73d8cfa743de85fd2.tar.gz
u-boot-9f4f914d7f9e3188189bafd73d8cfa743de85fd2.tar.bz2
rockchip: pinctrl: dm: convert fdt_get to dev_read
With the new dev_read functions available, we can convert the rockchip architecture-specific drivers and common drivers used by these devices over to the dev_read family of calls. This change covers the pinctrl drivers for the Rockchip devices. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pinctrl/rockchip/pinctrl_rk3036.c')
-rw-r--r--drivers/pinctrl/rockchip/pinctrl_rk3036.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3036.c b/drivers/pinctrl/rockchip/pinctrl_rk3036.c
index 9215d6c..94f6d7a 100644
--- a/drivers/pinctrl/rockchip/pinctrl_rk3036.c
+++ b/drivers/pinctrl/rockchip/pinctrl_rk3036.c
@@ -193,8 +193,7 @@ static int rk3036_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;