From: Maxime Bizon Date: Fri, 13 Jul 2012 07:46:04 +0000 (+0000) Subject: MIPS: BCM63XX: don't write to the chipid register on reboot X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6d591805917cbc691e34cb3f8a10fef5997889bf;p=deliverable%2Flinux.git MIPS: BCM63XX: don't write to the chipid register on reboot While harmless, it is bad style to do so. Signed-off-by: Maxime Bizon Signed-off-by: Jonas Gorski Patchwork: http://patchwork.linux-mips.org/patch/4092/ Signed-off-by: John Crispin --- 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) } for (i = 0; i < 2; i++) { + if (!perf_regs[i]) + break; + reg = bcm_perf_readl(perf_regs[i]); if (BCMCPU_IS_6348()) { reg &= ~EXTIRQ_CFG_MASK_ALL_6348;