Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752382Ab2BVWuW (ORCPT ); Wed, 22 Feb 2012 17:50:22 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:59080 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859Ab2BVWuV (ORCPT ); Wed, 22 Feb 2012 17:50:21 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of rmallon@gmail.com designates 10.68.208.196 as permitted sender) smtp.mail=rmallon@gmail.com; dkim=pass header.i=rmallon@gmail.com Message-ID: <4F457128.6060407@gmail.com> Date: Thu, 23 Feb 2012 09:50:16 +1100 From: Ryan Mallon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.26) Gecko/20120131 Lightning/1.0b2 Thunderbird/3.1.18 MIME-Version: 1.0 To: Nicolas Ferre CC: plagnioj@jcrosoft.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk Subject: Re: [PATCH v2 11/19] ARM: at91/PMC: make register base soc independent References: <1329903585-30738-1-git-send-email-nicolas.ferre@atmel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1618 Lines: 43 On 22/02/12 20:39, Nicolas Ferre wrote: > From: Jean-Christophe PLAGNIOL-VILLARD > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > Acked-by: Nicolas Ferre > Reviewed-by: Ryan Mallon > --- > - seq_printf(s, "SCSR = %8x\n", scsr = at91_sys_read(AT91_PMC_SCSR)); > - seq_printf(s, "PCSR = %8x\n", pcsr = at91_sys_read(AT91_PMC_PCSR)); > - seq_printf(s, "MOR = %8x\n", at91_sys_read(AT91_CKGR_MOR)); > - seq_printf(s, "MCFR = %8x\n", at91_sys_read(AT91_CKGR_MCFR)); > - seq_printf(s, "PLLA = %8x\n", at91_sys_read(AT91_CKGR_PLLAR)); > + seq_printf(s, "SCSR = %8x\n", scsr = at91_pmc_read(AT91_PMC_SCSR)); > + seq_printf(s, "PCSR = %8x\n", pcsr = at91_pmc_read(AT91_PMC_PCSR)); I realise the original code is wrong, so doesn't need to be fixed in this patch, but can we please move the assignments out of the seq_printf calls. > void __init at91_ioremap_ramc(int id, u32 addr, u32 size) > @@ -208,7 +207,7 @@ void __init at91_ioremap_ramc(int id, u32 addr, u32 size) > } > at91_ramc_base[id] = ioremap(addr, size); > if (!at91_ramc_base[id]) > - pr_warn("Impossible to ioremap ramc.%d 0x%x\n", id, addr); > + panic("Impossible to ioremap ramc.%d 0x%x\n", id, addr); This is in the wrong patch, and should be folded into the correct patch. ~Ryan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/