]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: pmcs-msp71xx: Add missing MAX_PROM_MEM definition
authorPaul Burton <paul.burton@mips.com>
Thu, 3 Oct 2019 22:46:23 +0000 (22:46 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 3 Oct 2019 22:47:14 +0000 (15:47 -0700)
commitd5a0eab096fce4480afc667522198ecd9b02972e
tree7d3a8da0534448f5a182e07b299e4ad183c0def7
parentd904c1434b36defcd05cf9285dd541f366bccd2d
MIPS: pmcs-msp71xx: Add missing MAX_PROM_MEM definition

Commit f089e0e136bf ("MIPS: msp: Record prom memory") introduced use of
a MAX_PROM_MEM value but didn't define it. A bounds check in
prom_meminit() suggests its value was supposed to be 5, so define it as
such & adjust the bounds check to use the macro rather than a magic
number.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: f089e0e136bf ("MIPS: msp: Record prom memory")
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
arch/mips/pmcs-msp71xx/msp_prom.c