of/irq: export of_get_irq_byname()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 26 Aug 2015 00:04:02 +0000 (17:04 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 26 Aug 2015 16:47:57 +0000 (18:47 +0200)
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 <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/of/irq.c

index 3cf7a01..e9eaed1 100644 (file)
@@ -431,6 +431,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