From: Kever Yang Date: Wed, 25 Oct 2017 08:24:48 +0000 (+0800) Subject: rockchip: rk3328: fix rockchip_get_cru api X-Git-Tag: v2017.11-rc4~21^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36de37f5ca55ffd426f3e16ba085a4e7defdfa3b;p=platform%2Fkernel%2Fu-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 4dcac27..013d777 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; }