]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: tegra: Add error handling & clean up.
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Thu, 16 May 2013 14:13:01 +0000 (19:43 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 May 2013 23:47:32 +0000 (02:47 +0300)
commit313b768b722eac738a890c865279baeab14566cf
treef3b0dad9794c7604b7d8cab26a17dff2b1004805
parentdea61711fad6c94357dbb1860af58feedf895e45
usb: phy: tegra: Add error handling & clean up.

Check return values from all GPIO APIs and handle errors accordingly.

Remove the call to clk_disable_unprepare(); this function does not
prepare or enable the clock, so the error path should not disable or
unprepare it.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-tegra-usb.c