Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "usb: host: ehci-sh: propagate errors from platform_get_irq()"

This reverts commit 1aebf115afd730d1e0f773b8273b04b8681e1128 as the
prerequsite commit for it is not in the tree.

Cc: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+2 -2
+2 -2
drivers/usb/host/ehci-sh.c
··· 82 82 return -ENODEV; 83 83 84 84 irq = platform_get_irq(pdev, 0); 85 - if (irq < 0) { 86 - ret = irq; 85 + if (irq <= 0) { 86 + ret = -ENODEV; 87 87 goto fail_create_hcd; 88 88 } 89 89