usb: phy: phy-mxs-usb: Check the return value from clk_prepare_enable()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 2 Dec 2013 03:02:34 +0000 (01:02 -0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 6 Dec 2013 20:30:56 +0000 (14:30 -0600)
commit67c21fc803de62369dfc8e41dab352107d7f06ef
tree775fc936649d5de7ad8818c250a8b0adf320e53f
parent9510ecee62dff8cc603ea163bf72729c491fbe5b
usb: phy: phy-mxs-usb: Check the return value from clk_prepare_enable()

clk_prepare_enable() may fail, so let's check its return value and propagate it
in the case of error.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mxs-usb.c