The rockchip_get_clk() helper is typically used by SDRAM init code of
older SoC generations or to help get the CRU base address from the clock
driver private data.

RK3528 has no uses for the rockchip_get_clk() helper, let's drop it.

Signed-off-by: Jonas Karlman <[email protected]>
---
 arch/arm/mach-rockchip/rk3528/clk_rk3528.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/arm/mach-rockchip/rk3528/clk_rk3528.c 
b/arch/arm/mach-rockchip/rk3528/clk_rk3528.c
index 6e77f11cbec0..c9328ba4427a 100644
--- a/arch/arm/mach-rockchip/rk3528/clk_rk3528.c
+++ b/arch/arm/mach-rockchip/rk3528/clk_rk3528.c
@@ -1,15 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 // Copyright Contributors to the U-Boot project.
 
-#include <dm.h>
+#include <linux/kernel.h>
 #include <asm/arch-rockchip/cru_rk3528.h>
 
-int rockchip_get_clk(struct udevice **devp)
-{
-       return uclass_get_device_by_driver(UCLASS_CLK,
-                               DM_DRIVER_GET(rockchip_rk3528_cru), devp);
-}
-
 void *rockchip_get_cru(void)
 {
        return RK3528_CRU_BASE;
-- 
2.54.0

Reply via email to