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.

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

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

diff --git a/arch/arm/mach-rockchip/rk3506/clk_rk3506.c 
b/arch/arm/mach-rockchip/rk3506/clk_rk3506.c
index 96723f403cfe..e3161418302e 100644
--- a/arch/arm/mach-rockchip/rk3506/clk_rk3506.c
+++ b/arch/arm/mach-rockchip/rk3506/clk_rk3506.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_rk3506.h>
 
-int rockchip_get_clk(struct udevice **devp)
-{
-       return uclass_get_device_by_driver(UCLASS_CLK,
-                               DM_DRIVER_GET(rockchip_rk3506_cru), devp);
-}
-
 void *rockchip_get_cru(void)
 {
        return (void *)RK3506_CRU_BASE;
-- 
2.54.0

Reply via email to