diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-21 09:14:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-21 09:14:05 +0300 |
commit | 4daf08a0afa898d52f1f40db3ddf00489f2dc712 (patch) | |
tree | 7c863701f42b6685ea6a9b78f93739950cf7c350 /drivers/usb | |
parent | 236c9ad1f87088bb07ebdd136b8432f83dfd1e14 (diff) | |
download | linux-4daf08a0afa898d52f1f40db3ddf00489f2dc712.tar.xz |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-sh.c b/drivers/usb/host/ehci-sh.c index 882231b5c382..c25c51d26f26 100644 --- a/drivers/usb/host/ehci-sh.c +++ b/drivers/usb/host/ehci-sh.c @@ -82,8 +82,8 @@ static int ehci_hcd_sh_probe(struct platform_device *pdev) return -ENODEV; irq = platform_get_irq(pdev, 0); - if (irq < 0) { - ret = irq; + if (irq <= 0) { + ret = -ENODEV; goto fail_create_hcd; } |