usb: phy: phy-generic: Check clk_prepare_enable() error
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 23 Aug 2016 01:45:36 +0000 (22:45 -0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 5 Sep 2016 10:39:23 +0000 (13:39 +0300)
commit7c113f7df710df2aed63709815e518608dbd338c
tree8f796be14df11f2fd7fca795f7594edbba3e830c
parentb2f1eaaee564c5593c303f4d15d827924cb6d20d
usb: phy: phy-generic: Check clk_prepare_enable() error

clk_prepare_enable() may fail, so we should better check its return
value and propagate it in the case of failure.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-generic.c