OSDN Git Service

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>
Wed, 13 May 2020 12:20:01 +0000 (14:20 +0200)
commitc856b4b0fdb5044bca4c0acf9a66f3b5cc01a37a
tree12fb01a7d0ac4af8a2a5cfcd8d583f0c6a662f32
parent09806eba8279376de481c74bc1a2090283db757d
USB: EHCI: ehci-mv: fix error handling in mv_ehci_probe()

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>
drivers/usb/host/ehci-mv.c