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: 423336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 97CF11400A0 for ; Mon, 22 Dec 2014 21:05:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754223AbaLVKF6 (ORCPT ); Mon, 22 Dec 2014 05:05:58 -0500 Received: from mail-pd0-f173.google.com ([209.85.192.173]:38159 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754125AbaLVKF5 (ORCPT ); Mon, 22 Dec 2014 05:05:57 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so5573454pdb.32 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 Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org 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> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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); /*