USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Fri, 8 May 2020 11:43:05 +0000 (19:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:13 +0000 (20:40 +0200)
commit93851c8636246ae5036a89ea4577ce3b1deb70f0
tree09e42f5b915cc88f51ac6b8671638a4b74bf5bf1
parent7f8a294b5707fb8a6769125f3366e1f38ae7bcec
USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()

[ Upstream commit c856b4b0fdb5044bca4c0acf9a66f3b5cc01a37a ]

If the function platform_get_irq() failed, the negative value
returned will not be detected here. So fix error handling in
mv_ehci_probe(). And when get irq failed, the function
platform_get_irq() logs an error message, so remove redundant
message here.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200508114305.15740-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/ehci-mv.c