[PATCH v2] uio/pdrv_genirq: Add OF support

Wolfram Sang w.sang at pengutronix.de
Tue Apr 19 01:25:51 EST 2011


> >>+
> >>+		/* Multiple IRQs are not supported */
> >>+		if (pdev->num_resources > 1) {
> >>+			struct resource *r = &pdev->resource[1];
> >
> >Are you sure the irq-ressource is always [1]?  (Similar question for the
> >if()-block above). Try platform_get_irq().
> 
> I wasn't aware about platform_get_irq. You are right.
> 
> What "if()-block above" are you talking about?

The one I quoted: if (pdev->num_resources > 1)

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20110418/a7579f1a/attachment.pgp>


More information about the devicetree-discuss mailing list