X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=arch%2Fmips%2Fpmcs-msp71xx%2Fmsp_prom.c;h=f87c522a63e64a92f301367d124feffd243c9e88;hb=101c40ed269ccf67d3535bf2d131584008edbbd1;hp=dfb527961a27c3a813f7a6971243eb5f7f455548;hpb=f1f2f614d535564992f32e720739cb53cf03489f;p=linux-2.6-block.git diff --git a/arch/mips/pmcs-msp71xx/msp_prom.c b/arch/mips/pmcs-msp71xx/msp_prom.c index dfb527961a27..f87c522a63e6 100644 --- a/arch/mips/pmcs-msp71xx/msp_prom.c +++ b/arch/mips/pmcs-msp71xx/msp_prom.c @@ -61,6 +61,7 @@ int init_debug = 1; /* memory blocks */ struct prom_pmemblock mdesc[PROM_MAX_PMEMBLOCKS]; +#define MAX_PROM_MEM 5 static phys_addr_t prom_mem_base[MAX_PROM_MEM] __initdata; static phys_addr_t prom_mem_size[MAX_PROM_MEM] __initdata; static unsigned int nr_prom_mem __initdata; @@ -358,7 +359,7 @@ void __init prom_meminit(void) p++; if (type == BOOT_MEM_ROM_DATA) { - if (nr_prom_mem >= 5) { + if (nr_prom_mem >= MAX_PROM_MEM) { pr_err("Too many ROM DATA regions"); continue; }