usb: phy: phy-generic: propagate clk_get error if clock is required
authorLucas Stach <l.stach@pengutronix.de>
Fri, 18 Aug 2017 16:32:02 +0000 (18:32 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:04 +0000 (10:38 +0300)
commitf9c5d1dbda8ee8757a987a55d6cf21b4eb443548
tree01f2fdf8d0f3029b9394b13b70a3895b8f059bba
parentbbb1cc050890dad2ad8747a23b9f22a53e726c9a
usb: phy: phy-generic: propagate clk_get error if clock is required

If the clock handle is given in the DT, it means the clock is required
for proper operation of the PHY. In that case a failure to obtain the
clock must be propagated to stop the driver from probing. This fixes
working with clocks, which request probe deferral.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-generic.c