usb: host: ohci-omap: propagate errors from platform_get_irq()

The driver overrides the error codes returned by platform_get_irq() to
-ENXIO for some strange reason.  Switch to propagating the error codes
upstream.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/20211214204247.7172-5-s.shtylyov@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergey Shtylyov 2021-12-14 23:42:47 +03:00 committed by Greg Kroah-Hartman
parent 1aebf115af
commit 4de5bd9a38
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ static int ohci_hcd_omap_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
retval = -ENXIO;
retval = irq;
goto err3;
}
retval = usb_add_hcd(hcd, irq, 0);