From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH] of: Export of_irq_count for using in modules Date: Thu, 30 May 2013 22:17:14 +0200 Message-ID: <20130530201714.GE19834@game.jcrosoft.org> References: <6aa29b1d109a46278a7f37b598defe07d6edfe60.1369921774.git.michal.simek@xilinx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <6aa29b1d109a46278a7f37b598defe07d6edfe60.1369921774.git.michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Michal Simek Cc: Grant Likely , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring List-Id: devicetree@vger.kernel.org On 15:49 Thu 30 May , Michal Simek wrote: > Export of_irq_count for modules. can you explain why do you need to call of_irq_count Best Regards, J. > > Signed-off-by: Michal Simek > --- > 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 > > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > https://lists.ozlabs.org/listinfo/devicetree-discuss