uio_pdrv_genirq: Remove warning when irq is not specified
commit324ac45f25
upstream. Sincee3a3c3a205
("UIO: fix uio_pdrv_genirq with device tree but no interrupt"), the uio_pdrv_genirq has supported use without interrupt, so the change in7723f4c5ec
("driver core: platform: Add an error message to") added false warnings for those cases. Fixes:7723f4c5ec
("driver core: platform: Add an error message to platform_get_irq*()") Signed-off-by: Esben Haabendal <esben@geanix.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200701145659.3978-2-esben@geanix.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
97f1aecb80
commit
17268122ba
|
@ -152,7 +152,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
|
||||||
priv->pdev = pdev;
|
priv->pdev = pdev;
|
||||||
|
|
||||||
if (!uioinfo->irq) {
|
if (!uioinfo->irq) {
|
||||||
ret = platform_get_irq(pdev, 0);
|
ret = platform_get_irq_optional(pdev, 0);
|
||||||
uioinfo->irq = ret;
|
uioinfo->irq = ret;
|
||||||
if (ret == -ENXIO && pdev->dev.of_node)
|
if (ret == -ENXIO && pdev->dev.of_node)
|
||||||
uioinfo->irq = UIO_IRQ_NONE;
|
uioinfo->irq = UIO_IRQ_NONE;
|
||||||
|
|
Loading…
Reference in New Issue