Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932832AbbHZAEI (ORCPT ); Tue, 25 Aug 2015 20:04:08 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36305 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816AbbHZAEG (ORCPT ); Tue, 25 Aug 2015 20:04:06 -0400 Date: Tue, 25 Aug 2015 17:04:02 -0700 From: Dmitry Torokhov To: Grant Likely Cc: Rob Herring , Laurent Pinchart , Jeremy Linton , Geert Uytterhoeven , Wolfram Sang , Stephen Rothwell , Vignesh R , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of/irq: export of_get_irq_byname() Message-ID: <20150826000402.GA5042@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 33 Similarly to of_get_irq(), let's export of_irq_get_byname(), so if a bus core can be compiled as a module (such as I2C) it can have access to the symbol. Reported-by: Stephen Rothwell Reported-by: kbuild test robot Signed-off-by: Dmitry Torokhov --- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 7ef837e..1a7911d 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -446,6 +446,7 @@ int of_irq_get_byname(struct device_node *dev, const char *name) return of_irq_get(dev, index); } +EXPORT_SYMBOL_GPL(of_irq_get_byname); /** * of_irq_count - Count the number of IRQs a node uses -- 2.5.0.457.gab17608 -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/