MIPS: sibyte: remove no longer needed board_mem_region
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 15 Mar 2023 13:45:48 +0000 (14:45 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 17 Mar 2023 09:26:51 +0000 (10:26 +0100)
With the direct use of memblock interface board_mem_region is no
longer needed.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/sibyte/common/cfe.c

index 1a50429..2503f60 100644 (file)
 #endif
 #endif
 
-#define SIBYTE_MAX_MEM_REGIONS 8
-phys_addr_t board_mem_region_addrs[SIBYTE_MAX_MEM_REGIONS];
-phys_addr_t board_mem_region_sizes[SIBYTE_MAX_MEM_REGIONS];
-unsigned int board_mem_region_count;
-
 int cfe_cons_handle;
 
 #ifdef CONFIG_BLK_DEV_INITRD
@@ -141,16 +136,6 @@ static __init void prom_meminit(void)
                                        size -= 512;
                                memblock_add(addr, size);
                        }
-                       board_mem_region_addrs[board_mem_region_count] = addr;
-                       board_mem_region_sizes[board_mem_region_count] = size;
-                       board_mem_region_count++;
-                       if (board_mem_region_count ==
-                           SIBYTE_MAX_MEM_REGIONS) {
-                               /*
-                                * Too many regions.  Need to configure more
-                                */
-                               while(1);
-                       }
                }
        }
 #ifdef CONFIG_BLK_DEV_INITRD