From: Andy Shevchenko Date: Fri, 17 Dec 2021 11:28:32 +0000 (+0200) Subject: ata: libahci_platform: Get rid of dup message when IRQ can't be retrieved X-Git-Tag: irq_urgent_for_v5.17_rc2~8^2~95 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7b6acb4e7faa8590ac9b56874a2129a977da8890;p=users%2Fdwmw2%2Flinux.git ata: libahci_platform: Get rid of dup message when IRQ can't be retrieved platform_get_irq() will print a message when it fails. No need to repeat this. Signed-off-by: Andy Shevchenko Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index bfa267e6f0457..18296443ccbac 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -579,11 +579,8 @@ int ahci_platform_init_host(struct platform_device *pdev, int i, irq, n_ports, rc; irq = platform_get_irq(pdev, 0); - if (irq < 0) { - if (irq != -EPROBE_DEFER) - dev_err(dev, "no irq\n"); + if (irq < 0) return irq; - } if (!irq) return -EINVAL;