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.
RK3568 has no uses for the rockchip_get_clk() helper, let's drop it. Signed-off-by: Jonas Karlman <[email protected]> --- arch/arm/mach-rockchip/rk3568/clk_rk3568.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3568/clk_rk3568.c b/arch/arm/mach-rockchip/rk3568/clk_rk3568.c index 53755bcf55ad..72141e4726c2 100644 --- a/arch/arm/mach-rockchip/rk3568/clk_rk3568.c +++ b/arch/arm/mach-rockchip/rk3568/clk_rk3568.c @@ -3,15 +3,9 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd */ -#include <dm.h> +#include <linux/kernel.h> #include <asm/arch-rockchip/cru_rk3568.h> -int rockchip_get_clk(struct udevice **devp) -{ - return uclass_get_device_by_driver(UCLASS_CLK, - DM_DRIVER_GET(rockchip_rk3568_cru), devp); -} - void *rockchip_get_cru(void) { return (void *)RK3568_CRU_BASE; -- 2.54.0
