diff options
author | Venu Byravarasu <vbyravarasu@nvidia.com> | 2013-05-16 10:12:58 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-29 19:45:44 -0400 |
commit | 9e69fae1a89e543949fe81603f7229463b8061de (patch) | |
tree | d1bfa2cb16037b8a5c07286d37f17c46e4d8eb75 /drivers/usb/phy/phy-tegra-usb.c | |
parent | 10b2a9386504d83b076fcd06ddbc22b33719d51b (diff) |
usb: phy: tegra: Return correct error value provided by clk_get_sys
In case if clk_get_sys fails, return correct error value provided by
the API.
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-tegra-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-tegra-usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c index 17d811292f3a..8bcc12f6804a 100644 --- a/drivers/usb/phy/phy-tegra-usb.c +++ b/drivers/usb/phy/phy-tegra-usb.c | |||
@@ -620,8 +620,7 @@ static int tegra_phy_init(struct usb_phy *x) | |||
620 | phy->clk = clk_get_sys(NULL, ulpi_config->clk); | 620 | phy->clk = clk_get_sys(NULL, ulpi_config->clk); |
621 | if (IS_ERR(phy->clk)) { | 621 | if (IS_ERR(phy->clk)) { |
622 | pr_err("%s: can't get ulpi clock\n", __func__); | 622 | pr_err("%s: can't get ulpi clock\n", __func__); |
623 | err = -ENXIO; | 623 | return PTR_ERR(phy->clk); |
624 | goto err1; | ||
625 | } | 624 | } |
626 | if (!gpio_is_valid(ulpi_config->reset_gpio)) | 625 | if (!gpio_is_valid(ulpi_config->reset_gpio)) |
627 | ulpi_config->reset_gpio = | 626 | ulpi_config->reset_gpio = |