Message ID | 20200602114708.28620-1-tangbin@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 44ed240d62736ad29943ec01e41e194b96f7c5e9 |
Headers | show |
Series | usb: host: ehci-exynos: Fix error check in exynos_ehci_probe() | expand |
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index a4e9abcbd..1a9b7572e 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -203,9 +203,8 @@ static int exynos_ehci_probe(struct platform_device *pdev) hcd->rsrc_len = resource_size(res); irq = platform_get_irq(pdev, 0); - if (!irq) { - dev_err(&pdev->dev, "Failed to get IRQ\n"); - err = -ENODEV; + if (irq < 0) { + err = irq; goto fail_io; }