From patchwork Mon Sep 5 05:15:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song X-Patchwork-Id: 1124532 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p855HRA2019181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 5 Sep 2011 05:17:48 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R0RY5-0000lv-Nh; Mon, 05 Sep 2011 05:16:47 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R0RY5-0007VV-4B; Mon, 05 Sep 2011 05:16:45 +0000 Received: from cluster-g.mailcontrol.com ([208.87.233.190]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R0RXt-0007T5-M6 for linux-arm-kernel@lists.infradead.org; Mon, 05 Sep 2011 05:16:35 +0000 Received: from rly24g.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly24g.srv.mailcontrol.com (MailControl) with ESMTP id p855GUSP011891 for ; Mon, 5 Sep 2011 06:16:30 +0100 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by rly24g.srv.mailcontrol.com (MailControl) id p855GRtn011502 for ; Mon, 5 Sep 2011 06:16:27 +0100 Received: from banasiexc01.ASIA.ROOT.PRI ([202.80.51.114]) by rly24g-eth0.srv.mailcontrol.com (envelope-sender ) (MIMEDefang) with ESMTP id p855GNwd011073 (TLS bits=128 verify=FAIL); Mon, 05 Sep 2011 06:16:27 +0100 (BST) Received: from SHAASIEXC01.ASIA.ROOT.PRI (10.125.12.84) by banasiexc01.ASIA.ROOT.PRI (10.190.12.21) with Microsoft SMTP Server (TLS) id 14.1.270.1; Mon, 5 Sep 2011 10:46:22 +0530 Received: from localhost.localdomain (10.125.36.59) by asimail.csr.com (10.125.12.88) with Microsoft SMTP Server (TLS) id 14.1.270.1; Mon, 5 Sep 2011 13:16:20 +0800 From: Barry Song To: , Subject: [PATCH 3/3] ARM: CSR: IRQ: add simple irq_domain so that hw irq can map to Linux Date: Sun, 4 Sep 2011 22:15:18 -0700 Message-ID: <1315199718-10102-3-git-send-email-Baohua.Song@csr.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1315199718-10102-1-git-send-email-Baohua.Song@csr.com> References: <1315199718-10102-1-git-send-email-Baohua.Song@csr.com> MIME-Version: 1.0 X-Originating-IP: [10.125.36.59] X-Scanned-By: MailControl A-12-01-02 (www.mailcontrol.com) on 10.71.1.134 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110905_011633_918615_18373664 X-CRM114-Status: GOOD ( 13.94 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [208.87.233.190 listed in list.dnswl.org] Cc: workgroup.linux@csr.com, Barry Song X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 05 Sep 2011 05:17:48 +0000 (UTC) Signed-off-by: Barry Song --- arch/arm/mach-prima2/irq.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-prima2/irq.c b/arch/arm/mach-prima2/irq.c index c3404cb..d888b8d 100644 --- a/arch/arm/mach-prima2/irq.c +++ b/arch/arm/mach-prima2/irq.c @@ -13,6 +13,7 @@ #include #include #include +#include #define SIRFSOC_INT_RISC_MASK0 0x0018 #define SIRFSOC_INT_RISC_MASK1 0x001C @@ -65,6 +66,8 @@ void __init sirfsoc_of_irq_init(void) if (!sirfsoc_intc_base) panic("unable to map intc cpu registers\n"); + irq_domain_add_simple(np, 0); + of_node_put(np); sirfsoc_irq_init();