From patchwork Thu Apr 12 01:12:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 151952 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BEA4FB7024 for ; Thu, 12 Apr 2012 11:14:25 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SI8aP-0001QL-IT; Thu, 12 Apr 2012 01:12:33 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SI8aE-0001M7-Qm for linux-arm-kernel@lists.infradead.org; Thu, 12 Apr 2012 01:12:23 +0000 Received: by yenm10 with SMTP id m10so936994yen.36 for ; Wed, 11 Apr 2012 18:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=fkFewXgIJD8FuMY52eL91D6h8Hr5CNSBk+wESOthwlo=; b=lOcTQKCEjnb+nQ5M/Fi2vCK26l9lSzFOJJuC4K96HHylE5QfeQ4K/K68Vzlk4j1luR mDGAj95fvIpCeIyiuFiGHoH0tMvgrM6HwTjnw8Qh1o9DJmppdTnUw5UyZKvWT3jj0Jt/ Dr18bqSUg6aMUpN0JWr0NAkL0kv0Klix6hkaNPmASleybB+8a/zyNafg4xzzj7L07NL7 q4BK+vG5BPJdm4BEyVUMCT+Eajd/zbH8JfGlmUgL4zmRTPJjI1NJ6rbWF5xUwhVMwM7g oVfB1j8Ceygb4qwqEvGcPSqbMctuD80PV6+kv3bujvR0TX+qPeDC0gHmpBMgtgXFeOV/ CDAA== Received: by 10.236.79.8 with SMTP id h8mr416523yhe.79.1334193141555; Wed, 11 Apr 2012 18:12:21 -0700 (PDT) Received: from localhost.localdomain ([201.82.161.72]) by mx.google.com with ESMTPS id i7sm7628176ani.17.2012.04.11.18.12.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 18:12:20 -0700 (PDT) From: Fabio Estevam To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] ARM: imx27-dt: Fix build due to removal of irq_domain_add_simple() Date: Wed, 11 Apr 2012 22:12:09 -0300 Message-Id: <1334193132-18944-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , Fabio Estevam , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org commit 6b783f7c (irq_domain: Remove irq_domain_add_simple() replaced irq_domain_add_simple with irq_domain_add_legacy() Implement this conversion so that imx27-dt can be built again. Reported-by: Chris Ball Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/imx27-dt.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c index 861ceb8..ffff10c 100644 --- a/arch/arm/mach-imx/imx27-dt.c +++ b/arch/arm/mach-imx/imx27-dt.c @@ -35,7 +35,7 @@ static const struct of_dev_auxdata imx27_auxdata_lookup[] __initconst = { static int __init imx27_avic_add_irq_domain(struct device_node *np, struct device_node *interrupt_parent) { - irq_domain_add_simple(np, 0); + irq_domain_add_legacy(np, 64, 0, 0, &irq_domain_simple_ops, NULL); return 0; } @@ -43,8 +43,10 @@ static int __init imx27_gpio_add_irq_domain(struct device_node *np, struct device_node *interrupt_parent) { static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS; - - irq_domain_add_simple(np, gpio_irq_base); + + gpio_irq_base -= 32; + irq_domain_add_legacy(np, 32, gpio_irq_base, 0, &irq_domain_simple_ops, + NULL); return 0; }