From 3e2e63c72bd1ce9438da885828d5c73ca5b898f1 Mon Sep 17 00:00:00 2001 From: Benoit Goby Date: Tue, 28 Sep 2010 23:52:10 -0700 Subject: [PATCH] [ARM] tegra: usb_phy: fix warning Change-Id: I10d3f7b001a13d4689adb64a7b4bf06626b6c786 Signed-off-by: Benoit Goby --- arch/arm/mach-tegra/usb_phy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 3e145f1bee1b..8ebedfc38b7b 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -591,6 +591,7 @@ struct tegra_usb_phy *tegra_usb_phy_open(int instance, void __iomem *regs, if (!phy->config) { if (instance == 1) { pr_err("%s: ulpi phy configuration missing", __func__); + err = -EINVAL; goto err0; } else { phy->config = &utmip_default[instance]; @@ -622,6 +623,7 @@ struct tegra_usb_phy *tegra_usb_phy_open(int instance, void __iomem *regs, phy->clk = clk_get_sys(NULL, ulpi_config->clk); if (IS_ERR(phy->clk)) { pr_err("%s: can't get ulpi clock\n", __func__); + err = -ENXIO; goto err1; } tegra_gpio_enable(ulpi_config->reset_gpio); -- 2.34.1