usb: ohci-at91: Remove redundant msg at probe time
authorYangtao Li <frank.li@vivo.com>
Wed, 26 Jul 2023 11:37:50 +0000 (19:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:24:08 +0000 (10:24 +0200)
platform_get_irq() directly prints error information.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Link: https://lore.kernel.org/r/20230726113816.888-4-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c

index 7ed9a3b..dc31a7f 100644 (file)
@@ -190,10 +190,8 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
        int irq;
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_dbg(dev, "hcd probe: missing irq resource\n");
+       if (irq < 0)
                return irq;
-       }
 
        hcd = usb_create_hcd(driver, dev, "at91");
        if (!hcd)