From patchwork Mon Dec 22 10:05:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5526741 Return-Path: X-Original-To: patchwork-linux-arm@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 14C009F30B for ; Mon, 22 Dec 2014 10:09:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2DB1320115 for ; Mon, 22 Dec 2014 10:09:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E6152010E for ; Mon, 22 Dec 2014 10:08:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y2ztD-0007t1-OC; Mon, 22 Dec 2014 10:06:59 +0000 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y2zsY-0007Uh-Pb for linux-arm-kernel@lists.infradead.org; Mon, 22 Dec 2014 10:06:19 +0000 Received: by mail-pd0-f177.google.com with SMTP id ft15so5544198pdb.22 for ; Mon, 22 Dec 2014 02:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xSbg+R4YYmvWmNuU4BkyC4PatoTr3TKs8mSHEzvsb9M=; b=WOJPwUHuT3Y/L7EQ4rgVxnbvHFM91wphdclIDq4woTVuGjlAFAPRp1ecA2GuxIARXH sk7kLtJj2ccptMRfpWKUiQuILi5QQjYhuTqYJgPDezJF79pfsuJOHqj7AhuWrq2tbHeg F6O66z4l3li7rYv9T3KXku3ShHMZER9DODCbV6trxIeKO9JnljcXDg+jUiixhXDaYLic DVkgXXJ0mXNf6UjEAIA9iqGIfbWP+ShEvOiL566Bx2NAa0rdFWMFRxfDxMHc4PfZ5PvX KPrNA8fNBbDwxNUgDA0gK8OBlU/+EmifHJt68x0VlYuqUl2uByjgSx2Bv9wMV7bWJDha DLmw== X-Received: by 10.70.39.101 with SMTP id o5mr33612442pdk.67.1419242757472; Mon, 22 Dec 2014 02:05:57 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id ka5sm348417pbc.27.2014.12.22.02.05.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Dec 2014 02:05:56 -0800 (PST) From: Dmitry Eremin-Solenikov To: Russell King , Linus Walleij Subject: [PATCH 3/5] ARM: sa1100: switch to irq_domain_add_simple() Date: Mon, 22 Dec 2014 13:05:38 +0300 Message-Id: <1419242740-20219-3-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1419242740-20219-1-git-send-email-dbaryshkov@gmail.com> References: <1419242740-20219-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141222_020618_903807_CD66EC23 X-CRM114-Status: GOOD ( 10.55 ) X-Spam-Score: 1.7 (+) Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, SUSPICIOUS_RECIPS, T_DKIM_INVALID, T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=no 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 As now both SC and GPIO irq domains start from 0 hwirq and do not contain holes, switch to using irq_domain_add_simple() instead of irq_domain_add_legacy(). Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-sa1100/irq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c index 5589b23..a9dfe8e 100644 --- a/arch/arm/mach-sa1100/irq.c +++ b/arch/arm/mach-sa1100/irq.c @@ -318,12 +318,12 @@ void __init sa1100_init_irq(void) */ ICCR = 1; - sa1100_normal_irqdomain = irq_domain_add_legacy(NULL, - 32, IRQ_GPIO0_SC, 0, + sa1100_normal_irqdomain = irq_domain_add_simple(NULL, + 32, IRQ_GPIO0_SC, &sa1100_normal_irqdomain_ops, NULL); - sa1100_gpio_irqdomain = irq_domain_add_legacy(NULL, - 28, IRQ_GPIO0, 0, + sa1100_gpio_irqdomain = irq_domain_add_simple(NULL, + 28, IRQ_GPIO0, &sa1100_gpio_irqdomain_ops, NULL); /*