diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2020-07-20 18:34:12 +0800 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2020-07-22 20:22:33 +0800 |
commit | b32858ca510183f61c803595492230ea840e5499 (patch) | |
tree | 6b7ae2f4bd8a53395b4c8f0c69d29d3e1017b42c /drivers/ram | |
parent | 40794c825f17881180852d4d010cacb3b45ce08e (diff) |
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 <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/ram')
-rw-r--r-- | drivers/ram/rockchip/sdram_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 /* |