]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit6829f92f6e64bfc6a553d7a2203ce1cb2e433c01
treef3b0dad9794c7604b7d8cab26a17dff2b1004805
parent12ea18e4f0bd793b7f9d7e8bf6c76815d5621ac3
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