OSDN Git Service

m68knommu: Add missing initialization of max_pfn and {min,max}_low_pfn
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 15 Nov 2015 10:46:55 +0000 (11:46 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 22 Nov 2015 10:35:25 +0000 (11:35 +0100)
commitb66f55cdba5559dedd295356bb5138c5ceadb694
treecb11fab5ae087552d4aaf4f9602777247750f241
parentc73ec319339030a455e7641e7020fc14093a4153
m68knommu: Add missing initialization of max_pfn and {min,max}_low_pfn

If max_pfn is not initialized, the block layer may use wrong DMA masks.

Replace open-coded shifts by PFN_DOWN(), and drop the "0 on coldfire"
comment, as it is not even true on all Coldfires, let alone all
m68knommu platforms.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Tested-By: Greg Ungerer <gerg@uclinux.org>
arch/m68k/kernel/setup_no.c