From 36de37f5ca55ffd426f3e16ba085a4e7defdfa3b Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Wed, 25 Oct 2017 16:24:48 +0800 Subject: [PATCH] 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 --- arch/arm/mach-rockchip/rk3328/clk_rk3328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5