Re: [PATCH v2] uio/pdrv_genirq: Add OF support
From: Wolfram Sang
Date: Mon Apr 18 2011 - 11:26:06 EST
> >>+
> >>+ /* 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