diff options
author | Esben Haabendal <esben@geanix.com> | 2020-07-01 16:56:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-03 10:52:01 +0200 |
commit | 324ac45f25e634eca6346953ae531e8da3e0c73d (patch) | |
tree | 7a679dbccbb4bfc02ae7659e4a3a766f202cf7e3 /drivers/uio | |
parent | 9b6a3f3633a5cc928b78627764793b60cb62e0f6 (diff) | |
download | linux-324ac45f25e634eca6346953ae531e8da3e0c73d.tar.gz linux-324ac45f25e634eca6346953ae531e8da3e0c73d.tar.bz2 linux-324ac45f25e634eca6346953ae531e8da3e0c73d.zip |
uio_pdrv_genirq: Remove warning when irq is not specified
Since e3a3c3a20555 ("UIO: fix uio_pdrv_genirq with device tree but no
interrupt"), the uio_pdrv_genirq has supported use without interrupt,
so the change in 7723f4c5ecdb ("driver core: platform: Add an error
message to") added false warnings for those cases.
Fixes: 7723f4c5ecdb ("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>
Diffstat (limited to 'drivers/uio')
-rw-r--r-- | drivers/uio/uio_pdrv_genirq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c index ae319ef3a832..1d69dd49c6d2 100644 --- a/drivers/uio/uio_pdrv_genirq.c +++ b/drivers/uio/uio_pdrv_genirq.c @@ -159,7 +159,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev) priv->pdev = pdev; if (!uioinfo->irq) { - ret = platform_get_irq(pdev, 0); + ret = platform_get_irq_optional(pdev, 0); uioinfo->irq = ret; if (ret == -ENXIO && pdev->dev.of_node) uioinfo->irq = UIO_IRQ_NONE; |