Skip to content

Commit 6602c45

Browse files
dtorWolfram Sang
authored andcommitted
of/irq: export of_get_irq_byname()
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>
1 parent a4a9a8c commit 6602c45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/of/irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ int of_irq_get_byname(struct device_node *dev, const char *name)
431431

432432
return of_irq_get(dev, index);
433433
}
434+
EXPORT_SYMBOL_GPL(of_irq_get_byname);
434435

435436
/**
436437
* of_irq_count - Count the number of IRQs a node uses

0 commit comments

Comments
 (0)