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)
commit101c40ed269ccf67d3535bf2d131584008edbbd1
tree7d3a8da0534448f5a182e07b299e4ad183c0def7
parent25b69a889b638b0b7e51e2c4fe717a66bec0e566
MIPS: pmcs-msp71xx: Add missing MAX_PROM_MEM definition

Commit b3c948e2c00f ("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: b3c948e2c00f ("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