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

Commit 9f2546ad authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Don't use max_pfn which is no longer initialized these days.



Still won't play nicely with esotheric configurations such as discontig
memory ...

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d0e7ba06
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ static void *alloc_progmem(unsigned long len)
	 * This means you must tell Linux to use less memory than you
	 * physically have, for example by passing a mem= boot argument.
	 */
	addr = pfn_to_kaddr(max_pfn);
	addr = pfn_to_kaddr(max_low_pfn);
	memset(addr, 0, len);
#else
	/* simple grab some mem for now */