From patchwork Fri Aug 12 07:54:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3399 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8F15723F41 for ; Fri, 12 Aug 2011 07:42:26 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 5DE6BA181EF for ; Fri, 12 Aug 2011 07:42:26 +0000 (UTC) Received: by qwb8 with SMTP id 8so2136278qwb.11 for ; Fri, 12 Aug 2011 00:42:25 -0700 (PDT) Received: by 10.229.62.150 with SMTP id x22mr403542qch.136.1313134945752; Fri, 12 Aug 2011 00:42:25 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.190.71 with SMTP id dh7cs140457qcb; Fri, 12 Aug 2011 00:42:25 -0700 (PDT) Received: from mr.google.com ([10.224.206.201]) by 10.224.206.201 with SMTP id fv9mr511401qab.370.1313134945372 (num_hops = 1); Fri, 12 Aug 2011 00:42:25 -0700 (PDT) Received: by 10.224.206.201 with SMTP id fv9mr375462qab.370.1313134945232; Fri, 12 Aug 2011 00:42:25 -0700 (PDT) Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id dy1si6127582qab.47.2011.08.12.00.42.25 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Aug 2011 00:42:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.212.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by vws14 with SMTP id 14so2803310vws.37 for ; Fri, 12 Aug 2011 00:42:24 -0700 (PDT) Received: by 10.142.186.3 with SMTP id j3mr295680wff.321.1313134913655; Fri, 12 Aug 2011 00:41:53 -0700 (PDT) Received: from localhost.localdomain ([58.208.99.22]) by mx.google.com with ESMTPS id 14sm1379325wfl.5.2011.08.12.00.41.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Aug 2011 00:41:53 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: Russell King - ARM Linux , Grant Likely , Nicolas Pitre , Sascha Hauer , patches@linaro.org, Shawn Guo Subject: [PATCH 1/6] arm/cpuimx51: gpio_to_irq() should be used to get irq from gpio number Date: Fri, 12 Aug 2011 15:54:56 +0800 Message-Id: <1313135701-22456-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313135701-22456-1-git-send-email-shawn.guo@linaro.org> References: <1313135701-22456-1-git-send-email-shawn.guo@linaro.org> Instead of irq_to_gpio(), gpio_to_irq() should be used to get irq from gpio number. Signed-off-by: Shawn Guo Cc: Sascha Hauer --- arch/arm/mach-mx5/board-cpuimx51.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index 7c893fa..68934ea 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c @@ -81,7 +81,7 @@ static struct plat_serial8250_port serial_platform_data[] = { .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, }, { .mapbase = (unsigned long)(MX51_CS1_BASE_ADDR + 0x2000000), - .irq = irq_to_gpio(CPUIMX51_QUARTD_GPIO), + .irq = gpio_to_irq(CPUIMX51_QUARTD_GPIO), .irqflags = IRQF_TRIGGER_HIGH, .uartclk = CPUIMX51_QUART_XTAL, .regshift = CPUIMX51_QUART_REGSHIFT,