ata: libahci_platform: Get rid of dup message when IRQ can't be retrieved
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 Dec 2021 11:28:32 +0000 (13:28 +0200)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 4 Jan 2022 11:00:12 +0000 (20:00 +0900)
platform_get_irq() will print a message when it fails.
No need to repeat this.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libahci_platform.c

index bfa267e..1829644 100644 (file)
@@ -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;