dm: usb: tegra: Tidy up error handling and a static function
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:46 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:27 +0000 (11:11 -0600)
commit7e27bddae02862f4bb9dff89c97713da326ea4b2
tree73b2060badfe788a9d85b4c53bb9d9b0a93896cf
parent943104f07c55692203c14ee266ea15b4df88a759
dm: usb: tegra: Tidy up error handling and a static function

Try to return useful error numbers where possible. Also avoid swallowing
an error number when it is returned by a called function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-tegra.c