arm64: rk3399: update rockchip_get_cru API
authorKever Yang <kever.yang@rock-chips.com>
Wed, 28 Dec 2016 09:48:26 +0000 (17:48 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 12 Jan 2017 03:23:25 +0000 (20:23 -0700)
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>
arch/arm/mach-rockchip/rk3399/clk_rk3399.c

index 7663591154c62c28d6b1ab4af99999178a6c98c8..ce706a61e24e8a4c52b5d76b9d6e442622a216fd 100644 (file)
 #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);