Revert "usb: host: ehci-sh: propagate errors from platform_get_irq()"
This reverts commit 1aebf115af
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>
This commit is contained in:
Родитель
236c9ad1f8
Коммит
4daf08a0af
|
@ -82,8 +82,8 @@ static int ehci_hcd_sh_probe(struct platform_device *pdev)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq <= 0) {
|
||||||
ret = irq;
|
ret = -ENODEV;
|
||||||
goto fail_create_hcd;
|
goto fail_create_hcd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче