aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3328
diff options
context:
space:
mode:
authorKever Yang2017-10-25 16:24:48 +0800
committerPhilipp Tomsich2017-11-01 11:21:32 +0100
commit36de37f5ca55ffd426f3e16ba085a4e7defdfa3b (patch)
treef11d7f5e8a04de19492d227780026c08a1338929 /arch/arm/mach-rockchip/rk3328
parent9f636a249c126b74e673e6d9592215f9b06c4f0b (diff)
rockchip: rk3328: fix rockchip_get_cru api
The API for get priv pointer is wrong, fix it. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3328')
-rw-r--r--arch/arm/mach-rockchip/rk3328/clk_rk3328.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/rk3328/clk_rk3328.c b/arch/arm/mach-rockchip/rk3328/clk_rk3328.c
index 4dcac27cc7e..013d777a027 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;
}