Skip to content

Commit

Permalink
MIPS: malta: Drop prom_free_prom_memory
Browse files Browse the repository at this point in the history
Current prom_free_prom_memory is freeing maps marked
as BOOT_MEM_ROM_DATA, however, nobody is exactly setting
this type for malta.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: yasha.che3@gmail.com
Cc: aurelien@aurel32.net
Cc: sfr@canb.auug.org.au
Cc: fancer.lancer@gmail.com
Cc: matt.redfearn@mips.com
Cc: chenhc@lemote.com
  • Loading branch information
Jiaxun Yang authored and Paul Burton committed Aug 23, 2019
1 parent 0df1007 commit 79fd0fe
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions arch/mips/mti-malta/malta-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@ void __init fw_meminit(void)

void __init prom_free_prom_memory(void)
{
unsigned long addr;
int i;

for (i = 0; i < boot_mem_map.nr_map; i++) {
if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA)
continue;

addr = boot_mem_map.map[i].addr;
free_init_pages("YAMON memory",
addr, addr + boot_mem_map.map[i].size);
}
}

phys_addr_t mips_cdmm_phys_base(void)
Expand Down

0 comments on commit 79fd0fe

Please sign in to comment.