USB: ehci-fsl: Return valid error in ehci_fsl_setup_phy
authorBen Collins <ben.c@servergy.com>
Fri, 19 Oct 2012 14:24:12 +0000 (10:24 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Oct 2012 17:54:30 +0000 (10:54 -0700)
commitd479c911789e14a19b86ca09b0b634f1449c8c6b
treed45a3ca9d4d3fd583a1e0788425c870330956a41
parente2a666d52b4825c26c857cada211f3baac26a600
USB: ehci-fsl: Return valid error in ehci_fsl_setup_phy

ehci_fsl_setup_phy is supposed to return an int, but had a void return
value in the case of controller_ver being invalid.

Introduced by commit 3735ba8db8e6 ("powerpc/usb: fix bug of CPU hang
when missing USB PHY clock"), which missed one return.

Signed-off-by: Ben Collins <ben.c@servergy.com>
Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/host/ehci-fsl.c