Skip to content

Commit bf12fdf

Browse files
esbengregkh
authored andcommitted
uio_pdrv_genirq: fix use without device tree and no interrupt
While e3a3c3a ("UIO: fix uio_pdrv_genirq with device tree but no interrupt") added support for using uio_pdrv_genirq for devices without interrupt for device tree platforms, the removal of uio_pdrv in 26dac3c ("uio: Remove uio_pdrv and use uio_pdrv_genirq instead") broke the support for non device tree platforms. This change fixes this, so that uio_pdrv_genirq can be used without interrupt on all platforms. This still leaves the support that uio_pdrv had for custom interrupt handler lacking, as uio_pdrv_genirq does not handle it (yet). Fixes: 26dac3c ("uio: Remove uio_pdrv and use uio_pdrv_genirq instead") 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 324ac45 commit bf12fdf

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
@@ -161,7 +161,7 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
161161
if (!uioinfo->irq) {
162162
ret = platform_get_irq_optional(pdev, 0);
163163
uioinfo->irq = ret;
164-
if (ret == -ENXIO && pdev->dev.of_node)
164+
if (ret == -ENXIO)
165165
uioinfo->irq = UIO_IRQ_NONE;
166166
else if (ret == -EPROBE_DEFER)
167167
return ret;

0 commit comments

Comments
 (0)