[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110418160658.GD23814@pengutronix.de>
Date: Mon, 18 Apr 2011 18:06:58 +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 v3] uio/pdrv_genirq: Add OF support
Hi,
> For example with "uio" compatible string:
> static const struct of_device_id __devinitconst uio_of_genirq_match[] = {
> { .compatible = "uio", },
> { /* empty for now */ },
> };
Please use a proper example with "vendor,device".
(And after that it won't be empty anymore)
> + /* Multiple IRQs are not supported */
> + irq = platform_get_irq(pdev, 0);
> + if (irq < 0) {
> + uioinfo->irq = UIO_IRQ_NONE;
> + dev_info(&pdev->dev, "no IRQ found\n");
> + } else {
> + uioinfo->irq = irq;
> + dev_info(&pdev->dev, "irq %d\n", (u32)uioinfo->irq);
> + }
Come to think of it, the driver so far does not print any dev_info messages,
only err and warn. So, I'd think these messages should go, too, but this is up
to Hans.
Regards,
Wolfram
--
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