Skip to content

Commit 4de5bd9

Browse files
Sergey Shtylyovgregkh
authored andcommitted
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>
1 parent 1aebf11 commit 4de5bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/ohci-omap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static int ohci_hcd_omap_probe(struct platform_device *pdev)
306306

307307
irq = platform_get_irq(pdev, 0);
308308
if (irq < 0) {
309-
retval = -ENXIO;
309+
retval = irq;
310310
goto err3;
311311
}
312312
retval = usb_add_hcd(hcd, irq, 0);

0 commit comments

Comments
 (0)