If platform_get_irq() returns IRQ0 (considered invalid according to Linus) the driver blithely passes it to ata_host_activate() that treats IRQ0 as a sign that libata should use polling and thus complains about non-NULL IRQ handler passed to it. Deny IRQ0 right away, returning -EINVAL from the probe() method... Fixes: 2fff27512600 ("PATA host controller driver for ep93xx") Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxxxxxxxx> --- drivers/ata/pata_ep93xx.c | 4 ++++ 1 file changed, 4 insertions(+) Index: linux-block/drivers/ata/pata_ep93xx.c =================================================================== --- linux-block.orig/drivers/ata/pata_ep93xx.c +++ linux-block/drivers/ata/pata_ep93xx.c @@ -931,6 +931,10 @@ static int ep93xx_pata_probe(struct plat err = irq; goto err_rel_gpio; } + if (!irq) { + err = -EINVAL; + goto err_rel_gpio; + } mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ide_base = devm_ioremap_resource(&pdev->dev, mem_res);