From patchwork Sun Dec 8 22:53:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Yanovich X-Patchwork-Id: 3307901 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 606239F37A for ; Sun, 8 Dec 2013 23:27:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E6B2201FD for ; Sun, 8 Dec 2013 23:27:31 +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 732A3201F7 for ; Sun, 8 Dec 2013 23:27:30 +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 1VpnHB-0003Oy-Kn; Sun, 08 Dec 2013 22:56:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VpnGU-0007p1-13; Sun, 08 Dec 2013 22:55:54 +0000 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VpnFf-0007hy-Lz for linux-arm-kernel@lists.infradead.org; Sun, 08 Dec 2013 22:55:05 +0000 Received: by mail-lb0-f175.google.com with SMTP id x18so1062226lbi.20 for ; Sun, 08 Dec 2013 14:54:40 -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=Dxst6L0hnRB6POF+oxL3ToYqCWdP/RMzSA7HazXq6Kc=; b=C7NzrGMtbELLJLgi3QmWg98JMQ+gHe1Lo/oWDZBoGUlm4MhusTp1zzKCe5uafkPQi3 CFNVUa51ty6Kd3CVnz56hC20d2cr4QQEP9X4iEupYtLL7YIqp25wfpw1Jde2wpW0l72i M2TFUZHYxFVtq4OKBC5/7ja7kyg+AaJanGGqq+6xhFSjjIkIA6tLesuXynIZS5sYc/dv xoTtVGLrKwq51JvKp6SEP79KLodfpil2dlzwnjm7TENSdhsWS9/H9j3mwAxLkXxPEm9x rzzZzagxMjpnqHcg4uQkgPvI1Tu/n3kxGfthylAcfvRrf0sU73Ym2p4zD6TVetk+iNLp J3VQ== X-Received: by 10.112.88.226 with SMTP id bj2mr767672lbb.66.1386543280478; Sun, 08 Dec 2013 14:54:40 -0800 (PST) Received: from host5.omatika.ru (0893675324.static.corbina.ru. [95.31.1.192]) by mx.google.com with ESMTPSA id a8sm9892011lae.5.2013.12.08.14.54.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Dec 2013 14:54:39 -0800 (PST) From: Sergei Ianovich To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/9] ARM: dts: pxa3xx: move declaration to header Date: Mon, 9 Dec 2013 02:53:46 +0400 Message-Id: <1386543229-1542-7-git-send-email-ynvich@gmail.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1386543229-1542-1-git-send-email-ynvich@gmail.com> References: <1386348542-9584-1-git-send-email-ynvich@gmail.com> <1386543229-1542-1-git-send-email-ynvich@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131208_175503_937334_0DF83B66 X-CRM114-Status: GOOD ( 13.16 ) 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=-4.1 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 --- arch/arm/mach-pxa/include/mach/irqs.h | 4 ++++ arch/arm/mach-pxa/pxa3xx.c | 2 -- 2 files changed, 4 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..0d71ae9 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h @@ -113,4 +113,8 @@ void ichp_handle_irq(struct pt_regs *); void pxa_init_irq(int irq_nr, int (*set_wake)(struct irq_data *, unsigned int)); #endif +#ifdef CONFIG_OF +extern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)); +#endif /* CONFIG_OF */ + #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);