From: Kever Yang Date: Wed, 25 Oct 2017 08:24:48 +0000 (+0800) Subject: rockchip: rk3328: fix rockchip_get_cru api X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=36de37f5ca55ffd426f3e16ba085a4e7defdfa3b;p=u-boot.git rockchip: rk3328: fix rockchip_get_cru api The API for get priv pointer is wrong, fix it. Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- diff --git a/arch/arm/mach-rockchip/rk3328/clk_rk3328.c b/arch/arm/mach-rockchip/rk3328/clk_rk3328.c index 4dcac27cc7..013d777a02 100644 --- a/arch/arm/mach-rockchip/rk3328/clk_rk3328.c +++ b/arch/arm/mach-rockchip/rk3328/clk_rk3328.c @@ -25,7 +25,7 @@ void *rockchip_get_cru(void) if (ret) return ERR_PTR(ret); - priv = devfdt_get_addr_ptr(dev); + priv = dev_get_priv(dev); return priv->cru; }