Skip to content

Commit

Permalink
of/irq: export of_get_irq_byname()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Wolfram Sang committed Aug 26, 2015
1 parent a4a9a8c commit 6602c45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/of/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6602c45

Please sign in to comment.