* [PATCH] of: irq: Export of_irq_count() @ 2017-04-03 15:55 Thierry Reding [not found] ` <20170403155547.19917-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Thierry Reding @ 2017-04-03 15:55 UTC (permalink / raw) To: Rob Herring Cc: Frank Rowand, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> of_irq_count() is handy for obtaining the number of interrupts assigned to a device tree node. It is reasonable to want to access this function from loadable modules, so export the symbol to allow that. Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> --- Hi Rob, Frank, This patch is required for the new Tegra186 GPIO driver I'm trying to get merged for v4.12. It'd be great if I could get an Acked-by from you so that the patch can be merged through the GPIO tree along with a few other prerequisites for the new driver. Potential for conflicts is rather minimal given the line count. Thanks, Thierry drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 7c56b72d1dc6..3deaada2ff29 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -458,6 +458,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 -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <20170403155547.19917-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] of: irq: Export of_irq_count() [not found] ` <20170403155547.19917-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-04-03 16:13 ` Rob Herring [not found] ` <CAL_JsqLGUuJZ6E3W+DXumtAfxtVPG8myqkZs7YL_KFc+RLgGGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Rob Herring @ 2017-04-03 16:13 UTC (permalink / raw) To: Thierry Reding Cc: Frank Rowand, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, Apr 3, 2017 at 10:55 AM, Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > of_irq_count() is handy for obtaining the number of interrupts assigned > to a device tree node. It is reasonable to want to access this function > from loadable modules, so export the symbol to allow that. > > Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > Hi Rob, Frank, > > This patch is required for the new Tegra186 GPIO driver I'm trying to > get merged for v4.12. It'd be great if I could get an Acked-by from you > so that the patch can be merged through the GPIO tree along with a few > other prerequisites for the new driver. Use platform_irq_count instead. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CAL_JsqLGUuJZ6E3W+DXumtAfxtVPG8myqkZs7YL_KFc+RLgGGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] of: irq: Export of_irq_count() [not found] ` <CAL_JsqLGUuJZ6E3W+DXumtAfxtVPG8myqkZs7YL_KFc+RLgGGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-04-03 16:29 ` Thierry Reding 0 siblings, 0 replies; 3+ messages in thread From: Thierry Reding @ 2017-04-03 16:29 UTC (permalink / raw) To: Rob Herring Cc: Frank Rowand, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [-- Attachment #1: Type: text/plain, Size: 964 bytes --] On Mon, Apr 03, 2017 at 11:13:43AM -0500, Rob Herring wrote: > On Mon, Apr 3, 2017 at 10:55 AM, Thierry Reding > <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > > > of_irq_count() is handy for obtaining the number of interrupts assigned > > to a device tree node. It is reasonable to want to access this function > > from loadable modules, so export the symbol to allow that. > > > > Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > --- > > Hi Rob, Frank, > > > > This patch is required for the new Tegra186 GPIO driver I'm trying to > > get merged for v4.12. It'd be great if I could get an Acked-by from you > > so that the patch can be merged through the GPIO tree along with a few > > other prerequisites for the new driver. > > Use platform_irq_count instead. Nice, that's much better. Thanks, Thierry [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-03 16:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-04-03 15:55 [PATCH] of: irq: Export of_irq_count() Thierry Reding [not found] ` <20170403155547.19917-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-04-03 16:13 ` Rob Herring [not found] ` <CAL_JsqLGUuJZ6E3W+DXumtAfxtVPG8myqkZs7YL_KFc+RLgGGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-04-03 16:29 ` Thierry Reding
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).