From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753729AbdDCPzz (ORCPT ); Mon, 3 Apr 2017 11:55:55 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33139 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753349AbdDCPzv (ORCPT ); Mon, 3 Apr 2017 11:55:51 -0400 From: Thierry Reding To: Rob Herring Cc: Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: irq: Export of_irq_count() Date: Mon, 3 Apr 2017 17:55:47 +0200 Message-Id: <20170403155547.19917-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding of_irq_count() is handy for obtaining the number of interrupts assigned to a device tree node. It is reasonable to want to access this function from loadable modules, so export the symbol to allow that. Signed-off-by: Thierry Reding --- Hi Rob, Frank, This patch is required for the new Tegra186 GPIO driver I'm trying to get merged for v4.12. It'd be great if I could get an Acked-by from you so that the patch can be merged through the GPIO tree along with a few other prerequisites for the new driver. Potential for conflicts is rather minimal given the line count. Thanks, Thierry drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 7c56b72d1dc6..3deaada2ff29 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -458,6 +458,7 @@ int of_irq_count(struct device_node *dev) return nr; } +EXPORT_SYMBOL_GPL(of_irq_count); /** * of_irq_to_resource_table - Fill in resource table with node's IRQ info -- 2.12.0