phy: ti: usb2: Fix logic on -EPROBE_DEFER
authorRoger Quadros <rogerq@ti.com>
Wed, 5 Dec 2018 15:03:23 +0000 (17:03 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 7 Feb 2019 05:40:37 +0000 (11:10 +0530)
commited31ee7cf1fea2463d9600ac91ed74691b88131f
treea1093b0702863b996eb8fd3e2b6969a143d24f4d
parent32fcf6fc6c71ffb29f31cffe6e93f4389757cb19
phy: ti: usb2: Fix logic on -EPROBE_DEFER

If clk_get() returns -EPROBE_DEFER then we should just
return instead of falling back to old clock name.

Use clk_prepare_enable() and clk_disable_unprepare() instead
of splitting up prepare/unprepare from enable/disable.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/ti/phy-omap-usb2.c