]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfedd1ddcda3c86929dabb0bb9354a29b19059e3f
treecb11fab5ae087552d4aaf4f9602777247750f241
parent1faeff4e691f46606ba21673b225396df6846abf
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