> >>+
> >>+           /* 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/  |

Attachment: signature.asc
Description: Digital signature

_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to