diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2016-12-28 17:48:26 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-01-11 20:23:25 -0700 |
commit | 2577d3f9245968161c797c0f5bacc4eacea0d67d (patch) | |
tree | ccada5c898da74399be69dd242b19028e48cd122 /arch/arm/mach-rockchip/rk3399/clk_rk3399.c | |
parent | f5f3de89355336f44f595fa8fb6bb5ed60aee4ed (diff) |
arm64: rk3399: update rockchip_get_cru API
rk3399 has two clock-controller: cru and pmucru, update the
rockchip_get_crui() API, and rockchip_get_clk() do not used for
other module.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3399/clk_rk3399.c')
-rw-r--r-- | arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-rockchip/rk3399/clk_rk3399.c b/arch/arm/mach-rockchip/rk3399/clk_rk3399.c index 7663591154..ce706a61e2 100644 --- a/arch/arm/mach-rockchip/rk3399/clk_rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/clk_rk3399.c @@ -11,10 +11,10 @@ #include <asm/arch/clock.h> #include <asm/arch/cru_rk3399.h> -int rockchip_get_clk(struct udevice **devp) +static int rockchip_get_cruclk(struct udevice **devp) { return uclass_get_device_by_driver(UCLASS_CLK, - DM_GET_DRIVER(rockchip_rk3399_pmuclk), devp); + DM_GET_DRIVER(clk_rk3399), devp); } void *rockchip_get_cru(void) @@ -23,7 +23,7 @@ void *rockchip_get_cru(void) struct udevice *dev; int ret; - ret = rockchip_get_clk(&dev); + ret = rockchip_get_cruclk(&dev); if (ret) return ERR_PTR(ret); |