usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 26 Oct 2020 09:06:57 +0000 (17:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2020 12:23:07 +0000 (13:23 +0100)
commit32d174d2d5eb318c34ff36771adefabdf227c186
tree9ab56fe3e239b8ee9b8f0ed8e744bb4b0015e80e
parentb9c6f782150c9992308f4474f920586eaaca4cf1
usb: host: ehci-tegra: Fix error handling in tegra_ehci_probe()

If the function platform_get_irq() failed, the negative value
returned will not be detected here. So fix error handling in
tegra_ehci_probe().

Fixes: 79ad3b5add4a ("usb: host: Add EHCI driver for NVIDIA Tegra SoCs")
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20201026090657.49988-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c