common: Drop board_show_dram()
authorSimon Glass <sjg@chromium.org>
Thu, 14 Nov 2019 19:57:44 +0000 (12:57 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 2 Dec 2019 23:25:02 +0000 (18:25 -0500)
This function is not defined by any boards so the feature is not used.
Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/mem.c
include/common.h

index c6b8038fc9dd61e7de81eb4a02c76d6805ec6d34..545534b1fc7265fb8ca9e3ca833248bc1d86c9ee 100644 (file)
--- a/cmd/mem.c
+++ b/cmd/mem.c
@@ -1212,16 +1212,11 @@ U_BOOT_CMD(
 #endif
 
 #ifdef CONFIG_CMD_MEMINFO
-__weak void board_show_dram(phys_size_t size)
-{
-       puts("DRAM:  ");
-       print_size(size, "\n");
-}
-
 static int do_mem_info(cmd_tbl_t *cmdtp, int flag, int argc,
                       char * const argv[])
 {
-       board_show_dram(gd->ram_size);
+       puts("DRAM:  ");
+       print_size(gd->ram_size, "\n");
 
        return 0;
 }
index 5bd778a4f46c8b6949dabfc8d3308ca78ae9398a..16d4b0612f8c54d39d6ec7a6580476b60f560f84 100644 (file)
@@ -73,15 +73,6 @@ extern u8 __dtb_dt_begin[];  /* embedded device tree blob */
 extern u8 __dtb_dt_spl_begin[];        /* embedded device tree blob for SPL/TPL */
 int mdm_init(void);
 
-/**
- * Show the DRAM size in a board-specific way
- *
- * This is used by boards to display DRAM information in their own way.
- *
- * @param size Size of DRAM (which should be displayed along with other info)
- */
-void board_show_dram(phys_size_t size);
-
 /**
  * Get the uppermost pointer that is valid to access
  *