From 6d591805917cbc691e34cb3f8a10fef5997889bf Mon Sep 17 00:00:00 2001 From: Maxime Bizon Date: Fri, 13 Jul 2012 07:46:04 +0000 Subject: [PATCH] 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 --- arch/mips/bcm63xx/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/bcm63xx/setup.c b/arch/mips/bcm63xx/setup.c index bd83836..314231b 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; -- 2.7.4