diff options
-rw-r--r-- | arch/mips/bcm63xx/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/bcm63xx/setup.c b/arch/mips/bcm63xx/setup.c index bd83836fa15e..314231be788c 100644 --- a/arch/mips/bcm63xx/setup.c +++ b/arch/mips/bcm63xx/setup.c | |||
@@ -86,6 +86,9 @@ void bcm63xx_machine_reboot(void) | |||
86 | } | 86 | } |
87 | 87 | ||
88 | for (i = 0; i < 2; i++) { | 88 | for (i = 0; i < 2; i++) { |
89 | if (!perf_regs[i]) | ||
90 | break; | ||
91 | |||
89 | reg = bcm_perf_readl(perf_regs[i]); | 92 | reg = bcm_perf_readl(perf_regs[i]); |
90 | if (BCMCPU_IS_6348()) { | 93 | if (BCMCPU_IS_6348()) { |
91 | reg &= ~EXTIRQ_CFG_MASK_ALL_6348; | 94 | reg &= ~EXTIRQ_CFG_MASK_ALL_6348; |