From b32858ca510183f61c803595492230ea840e5499 Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Mon, 20 Jul 2020 18:34:12 +0800 Subject: rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set The empty function define should not be in the header file, or else the build will error with function multi definition after CONFIG_RAM_ROCKCHIP_DEBUG is disabled. Signed-off-by: Kever Yang --- drivers/ram/rockchip/sdram_common.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'drivers/ram/rockchip') diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c index 6bc51572b2..b3e7421d08 100644 --- a/drivers/ram/rockchip/sdram_common.c +++ b/drivers/ram/rockchip/sdram_common.c @@ -117,6 +117,19 @@ void sdram_print_stride(unsigned int stride) printf("no stride\n"); } } +#else +inline void sdram_print_dram_type(unsigned char dramtype) +{ +} + +inline void sdram_print_ddr_info(struct sdram_cap_info *cap_info, + struct sdram_base_params *base) +{ +} + +inline void sdram_print_stride(unsigned int stride) +{ +} #endif /* -- cgit v1.2.3