Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbea06f3 authored by Santosh Shilimkar's avatar Santosh Shilimkar Committed by Arnd Bergmann
Browse files

ARM: keystone: Drop use of meminfo since its not available anymore



Laura's series removed the meminfo structure and its no longer available.
Update keystone code to remove the usage of it.

Reported-by: default avatarRussell King - ARM Linux <linux@arm.linux.org.uk>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 06fde1a0
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,6 +14,7 @@
#include <linux/init.h>
#include <linux/init.h>
#include <linux/of_platform.h>
#include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/of_address.h>
#include <linux/memblock.h>


#include <asm/setup.h>
#include <asm/setup.h>
#include <asm/mach/map.h>
#include <asm/mach/map.h>
@@ -68,9 +69,8 @@ static void __init keystone_init_meminfo(void)
	phys_addr_t offset = PHYS_OFFSET - KEYSTONE_LOW_PHYS_START;
	phys_addr_t offset = PHYS_OFFSET - KEYSTONE_LOW_PHYS_START;
	phys_addr_t mem_start, mem_end;
	phys_addr_t mem_start, mem_end;


	BUG_ON(meminfo.nr_banks < 1);
	mem_start = memblock_start_of_DRAM();
	mem_start = meminfo.bank[0].start;
	mem_end = memblock_end_of_DRAM();
	mem_end = mem_start + meminfo.bank[0].size - 1;


	/* nothing to do if we are running out of the <32-bit space */
	/* nothing to do if we are running out of the <32-bit space */
	if (mem_start >= KEYSTONE_LOW_PHYS_START &&
	if (mem_start >= KEYSTONE_LOW_PHYS_START &&