From patchwork Fri Oct 11 06:35:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3020871 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 51D389F245 for ; Fri, 11 Oct 2013 06:35:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B0AB20319 for ; Fri, 11 Oct 2013 06:35:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4405A2028D for ; Fri, 11 Oct 2013 06:35:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752608Ab3JKGfI (ORCPT ); Fri, 11 Oct 2013 02:35:08 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33046 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762Ab3JKGfI (ORCPT ); Fri, 11 Oct 2013 02:35:08 -0400 Received: by mail-pa0-f52.google.com with SMTP id kl14so3916783pab.11 for ; Thu, 10 Oct 2013 23:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :mime-version:content-type; bh=pfPjJ0IrG8gYQ9MsSgVz5cpU94QyYzy0Vz27HANUzhM=; b=MM3eUzsJWzBvK8Yt/8ECT+uvWDgTFZukpMWcwYeUW9c6JwvNbCBAKnklmGa633+yK3 8261J2ymNjn4T9OLghRWVUSmXjBRM7W0KWf36jgyMO7w5H3NhOGUrapf/o4zCxNhbbMq gCuILNqAJrE0Cz0affZV4q3hj7uPLFEMs9KgptJqJAmUs8g+5BcOb10W86sjRI/HPQH7 It63YCem+tiE8L7ePp6aPsnReG8pBhSRXWD4VbzRIXIoUPs0SnepM5zz5vIHEfxRrzTG eC33XPADMvssVfjwJXn4Eq3DeOjU9sLOBFvjdcpVwxKtXgcXCmniIPHnacd3CEogErsF 1M8w== X-Received: by 10.68.234.73 with SMTP id uc9mr17893418pbc.142.1381473307630; Thu, 10 Oct 2013 23:35:07 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id pu5sm67634299pac.21.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Oct 2013 23:35:06 -0700 (PDT) Date: Thu, 10 Oct 2013 23:35:06 -0700 (PDT) Message-ID: <87haco1fjc.wl%kuninori.morimoto.gx@renesas.com> To: Simon Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <87li201fm0.wl%kuninori.morimoto.gx@renesas.com> References: <87li201fm0.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 03/10] ARM: shmobile: bockw: fixup FPGA ioremap area MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Don't keep FPGA ioremap area. Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-bockw-reference.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/board-bockw-reference.c b/arch/arm/mach-shmobile/board-bockw-reference.c index 875cf3f..fac95a4 100644 --- a/arch/arm/mach-shmobile/board-bockw-reference.c +++ b/arch/arm/mach-shmobile/board-bockw-reference.c @@ -32,7 +32,7 @@ #define COMCTLR 0x101c static void __init bockw_init(void) { - static void __iomem *fpga; + void __iomem *fpga; r8a7778_clock_init(); r8a7778_init_irq_extpin_dt(1); @@ -50,6 +50,8 @@ static void __init bockw_init(void) u16 val = ioread16(fpga + IRQ0MR); val &= ~(1 << 4); /* enable SMSC911x */ iowrite16(val, fpga + IRQ0MR); + + iounmap(fpga); } of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);