devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: Export of_irq_count for using in modules
@ 2013-05-30 13:49 Michal Simek
       [not found] ` <6aa29b1d109a46278a7f37b598defe07d6edfe60.1369921774.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Michal Simek @ 2013-05-30 13:49 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Michal Simek,
	Rob Herring, Grant Likely


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]

Export of_irq_count for modules.

Signed-off-by: Michal Simek <michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
---
We are using this function in remoteproc module drivers.
There is also drivers/gpio/gpio-mvebu.c in the tree
which use this function but this driver can't be compiled
as module. This could be also the reason why is not this driver as module.
---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index a3c1c5a..c918dde 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -374,6 +374,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
--
1.8.2.3


[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-07-18  7:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 13:49 [PATCH] of: Export of_irq_count for using in modules Michal Simek
     [not found] ` <6aa29b1d109a46278a7f37b598defe07d6edfe60.1369921774.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2013-05-30 20:17   ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]     ` <20130530201714.GE19834-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2013-05-31  8:14       ` Michal Simek
     [not found]         ` <51A85BEE.4000009-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2013-05-31 11:00           ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]             ` <20130531110045.GF19834-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2013-05-31 13:57               ` Michal Simek
     [not found]                 ` <51A8AC4B.906-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2013-05-31 15:16                   ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-31 16:45                     ` Michal Simek
2013-06-06  8:29                       ` Jean-Christophe PLAGNIOL-VILLARD
2013-06-06  8:39                         ` Michal Simek
2013-06-06 11:55                           ` Grant Likely
2013-06-06 13:26                             ` Michal Simek
2013-06-06 14:49                           ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]                             ` <20130606144929.GI19834-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2013-06-06 17:16                               ` Michal Simek
2013-07-18  7:02                               ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).