From patchwork Fri Dec 13 02:27:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Yanovich X-Patchwork-Id: 3335891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11507C0D4A for ; Fri, 13 Dec 2013 02:31:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3A926205DF for ; Fri, 13 Dec 2013 02:30:59 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8706A207DD for ; Fri, 13 Dec 2013 02:30:57 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrIVh-0001pp-Pb; Fri, 13 Dec 2013 02:29:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrIVD-0000Du-Mx; Fri, 13 Dec 2013 02:29:19 +0000 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrIUy-0000Ao-J4 for linux-arm-kernel@lists.infradead.org; Fri, 13 Dec 2013 02:29:05 +0000 Received: by mail-la0-f47.google.com with SMTP id ep20so940733lab.34 for ; Thu, 12 Dec 2013 18:28:42 -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=FNBXpPP0TVvUmY8iHSBNlVbasSI2gEU9gJaa9M+0ZIc=; b=nCq23OkhJHB0rOYcc5MlcQc+xihLyu4fVaYy0O57H4CzxwKp0uJ47ZK5xO6HJe//Nz 0Jh+RGxx0xXjFW4vBs2veiV3d9Wk1C69FoFgeHh0BAJo/5g4qhbGgH5J0npbevJWqtRU wOh597siyITA6+zmTHtUmuLSCg60cVqiR/HnbHxrRLCGz6rD/VZbbvq/Djf5S6pqC8/q 11Q5YE6c1Djml6z6fjy7FjNfh7KhSh5CtXUvMzVhbFe07A/S8oDURC2mF03/iimbBqrN A9al1k5gnjOrwXQW0Vjj/5pix/hnROf/ZExLdFte3/EgSRncmZ9pv9Vis2CFk8d069e6 +pkg== X-Received: by 10.152.22.201 with SMTP id g9mr24482laf.27.1386901722841; Thu, 12 Dec 2013 18:28:42 -0800 (PST) Received: from host5.omatika.ru (0893675324.static.corbina.ru. [95.31.1.192]) by mx.google.com with ESMTPSA id e10sm809634laa.6.2013.12.12.18.28.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2013 18:28:42 -0800 (PST) From: Sergei Ianovich To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 04/16] ARM: dts: pxa3xx: move declaration to header Date: Fri, 13 Dec 2013 06:27:13 +0400 Message-Id: <1386901645-28895-5-git-send-email-ynvich@gmail.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1386901645-28895-1-git-send-email-ynvich@gmail.com> References: <1386543229-1542-1-git-send-email-ynvich@gmail.com> <1386901645-28895-1-git-send-email-ynvich@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131212_212904_832251_7A40F7D5 X-CRM114-Status: GOOD ( 13.68 ) X-Spam-Score: -1.9 (-) Cc: Russell King , Arnd Bergmann , Haojian Zhuang , Daniel Mack , Sergei Ianovich , Eric Miao X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-3.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SBL, RP_MATCHES_RCVD, T_DKIM_INVALID,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 This way it will be more difficult to change the declaration in one place, but not the other. In addition, the change allows to use the binding for pxa-gpio on other PXA CPUs. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Arnd Bergmann --- v1..v2 * drop #ifdef in header file * number changed from 6 to 4 (dropped patches) arch/arm/mach-pxa/include/mach/irqs.h | 2 ++ arch/arm/mach-pxa/pxa3xx.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 48c2fd8..732315d 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h @@ -113,4 +113,6 @@ void ichp_handle_irq(struct pt_regs *); void pxa_init_irq(int irq_nr, int (*set_wake)(struct irq_data *, unsigned int)); #endif +extern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)); + #endif /* __ASM_MACH_IRQS_H */ diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 87011f3..2397dec 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c @@ -42,8 +42,6 @@ #define PECR_IE(n) ((1 << ((n) * 2)) << 28) #define PECR_IS(n) ((1 << ((n) * 2)) << 29) -extern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)); - static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1); static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1); static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1);