From patchwork Wed Apr 16 17:13:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Yanovich X-Patchwork-Id: 4003031 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 2FA6BBFF02 for ; Wed, 16 Apr 2014 17:17:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5310720374 for ; Wed, 16 Apr 2014 17:17:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 8C72B20373 for ; Wed, 16 Apr 2014 17:17:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaTQW-0000qI-Ff; Wed, 16 Apr 2014 17:15:12 +0000 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaTQ6-0007k8-Jb for linux-arm-kernel@lists.infradead.org; Wed, 16 Apr 2014 17:14:47 +0000 Received: by mail-lb0-f170.google.com with SMTP id s7so8509604lbd.29 for ; Wed, 16 Apr 2014 10:14:23 -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:in-reply-to:references; bh=Et20Znt5XpOlM4x6bvfh2OE6Lmh6oF6XRBt5NaI1SR4=; b=oT0xNkBiTfUztXpcvvXAYW5OeJY0ZFRouyU/fKxWXsoTweMmIX6km08gCK4+MgwYaI PGBXDHlYWT/We3EyB/qjb9Zk6U30Yoxzwgv6Dt4K4JzFYLdgJqHMZ9qx4agnkP6bjIDZ j6NEEOyr1NtT2+tFk7DQhUm+ZjWTUPhzmBczeKblAohs57W4ERWx28HFCdKGcw5OMwjS CdNZcnr9Et6FJ0F9UGW832JoXu5VnvEDrhE+6SN6/+Ul5Pn2xiFu6v0wzdaa9X94zuZf YYymAUaQ731pzqoew8HmyZmFuMT1NpqrGEKpb8nhL6Gv4vkZX+i9XdhTOWaJU0X9Tn4f og2Q== X-Received: by 10.112.171.67 with SMTP id as3mr3607810lbc.10.1397668463342; Wed, 16 Apr 2014 10:14:23 -0700 (PDT) Received: from host5.omatika.ru (0893675324.static.corbina.ru. [95.31.1.192]) by mx.google.com with ESMTPSA id jp6sm21178322lbc.15.2014.04.16.10.14.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Apr 2014 10:14:22 -0700 (PDT) From: Sergei Ianovich To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 04/21] ARM: dts: pxa3xx: move declaration to header Date: Wed, 16 Apr 2014 21:13:14 +0400 Message-Id: <1397668411-27162-5-git-send-email-ynvich@gmail.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1397668411-27162-1-git-send-email-ynvich@gmail.com> References: <1387309071-22382-1-git-send-email-ynvich@gmail.com> <1397668411-27162-1-git-send-email-ynvich@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140416_101446_846568_E276336A X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: -0.1 (/) 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=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 v2..v3 * no changes 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);