From patchwork Tue Dec 1 16:24:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 7738741 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E03469F30B for ; Tue, 1 Dec 2015 16:27:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8481204A9 for ; Tue, 1 Dec 2015 16:27:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0CC132065D for ; Tue, 1 Dec 2015 16:27:29 +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 1a3nkG-0001Mt-0k; Tue, 01 Dec 2015 16:25:36 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a3njk-00085T-Qo for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2015 16:25:05 +0000 Received: by wmuu63 with SMTP id u63so3475909wmu.0 for ; Tue, 01 Dec 2015 08:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=5TTtaJ+3r61fQMPwwoJ2GpZrxCux/Hn3PdcXGZFlafw=; b=Fff45q4iAk+Ja8k2NiIcLrGxMkLYa7y0KeSteTB2JzV/SV3mLXBXshghxCd0v23mbo B3e/2oeb84MM6oqAK5jKJ1BolhO4ZRh9p24/VwTF9EAIT1/8oWMKBZNkVID6n+1Xsp2u 7TyefqKoQ4vL7FL+nrlJrcFkNZlG1IzwAG/RKvcL4n72Q+JaRqbPKtxvg9OTNmHIQV5a 2tRoQaBLv4+q4AS3O2iu0ccA4wTsU6JwuV2D/ymcXsHb1CsF4WJOWA79dH8e8c7NUV8a 9jvBKZpArTaUOV1fCuu6BGmF17HBYq/rr3X8GbWq5GsNrofS2H0Pvz82YNFNrpM+p10j VqhA== X-Received: by 10.28.0.149 with SMTP id 143mr37777304wma.103.1448987083042; Tue, 01 Dec 2015 08:24:43 -0800 (PST) Received: from localhost.localdomain ([212.91.95.170]) by smtp.gmail.com with ESMTPSA id u4sm52078451wjz.4.2015.12.01.08.24.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 08:24:42 -0800 (PST) From: Carlo Caione To: robh+dt@kernel.org, devicetree@vger.kernel.org, jiang.liu@linux.intel.com, marc.zyngier@arm.com, tglx@linutronix.de, linus.walleij@linaro.org, b.galvani@gmail.com, linux-arm-kernel@lists.infradead.org, linux-meson@googlegroups.com, drake@endlessm.com, jerry.cao@amlogic.com, victor.wan@amlogic.com Subject: [PATCH v3 1/6] of/irq: Export of_irq_find_parent again Date: Tue, 1 Dec 2015 17:24:17 +0100 Message-Id: <1448987062-31225-2-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1448987062-31225-1-git-send-email-carlo@caione.org> References: <1448987062-31225-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151201_082505_160851_EE642A1C X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione 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_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Carlo Caione of_irq_find_parent was made static since it had no users outside of of_irq.c. Export it again since we are going to use it again. Signed-off-by: Carlo Caione --- drivers/of/irq.c | 3 ++- include/linux/of_irq.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 902b89b..4fa916d 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -53,7 +53,7 @@ EXPORT_SYMBOL_GPL(irq_of_parse_and_map); * Returns a pointer to the interrupt parent node, or NULL if the interrupt * parent could not be determined. */ -static struct device_node *of_irq_find_parent(struct device_node *child) +struct device_node *of_irq_find_parent(struct device_node *child) { struct device_node *p; const __be32 *parp; @@ -77,6 +77,7 @@ static struct device_node *of_irq_find_parent(struct device_node *child) return p; } +EXPORT_SYMBOL_GPL(of_irq_find_parent); /** * of_irq_parse_raw - Low level interrupt tree parsing diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index 039f2ee..6f879c6 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h @@ -94,6 +94,7 @@ static inline void of_msi_configure(struct device *dev, struct device_node *np) */ extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in); +extern struct device_node *of_irq_find_parent(struct device_node *child); #else /* !CONFIG_OF && !CONFIG_SPARC */ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, @@ -107,6 +108,11 @@ static inline u32 of_msi_map_rid(struct device *dev, { return rid_in; } + +static inline void *of_irq_find_parent(struct device_node *child) +{ + return NULL; +} #endif /* !CONFIG_OF */ #endif /* __OF_IRQ_H */