Skip to content

Commit 324ac45

Browse files
esbengregkh
authored andcommitted
uio_pdrv_genirq: Remove warning when irq is not specified
Since e3a3c3a ("UIO: fix uio_pdrv_genirq with device tree but no interrupt"), the uio_pdrv_genirq has supported use without interrupt, so the change in 7723f4c ("driver core: platform: Add an error message to") added false warnings for those cases. Fixes: 7723f4c ("driver core: platform: Add an error message to platform_get_irq*()") Signed-off-by: Esben Haabendal <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9b6a3f3 commit 324ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/uio/uio_pdrv_genirq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
159159
priv->pdev = pdev;
160160

161161
if (!uioinfo->irq) {
162-
ret = platform_get_irq(pdev, 0);
162+
ret = platform_get_irq_optional(pdev, 0);
163163
uioinfo->irq = ret;
164164
if (ret == -ENXIO && pdev->dev.of_node)
165165
uioinfo->irq = UIO_IRQ_NONE;

0 commit comments

Comments
 (0)