[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110418152551.GB23814@pengutronix.de>
Date: Mon, 18 Apr 2011 17:25:51 +0200
From: Wolfram Sang <w.sang@...gutronix.de>
To: Michal Simek <monstr@...str.eu>
Cc: devicetree-discuss@...ts.ozlabs.org, grant.likely@...retlab.ca,
john.williams@...alogix.com, linux-kernel@...r.kernel.org,
hjk@...sjkoch.de, arnd@...db.de
Subject: Re: [PATCH v2] uio/pdrv_genirq: Add OF support
> >>+
> >>+ /* 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/ |
Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)
Powered by blists - more mailing lists