Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e69fae1 authored by Venu Byravarasu's avatar Venu Byravarasu Committed by Felipe Balbi
Browse files

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: default avatarVenu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 10b2a938
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -620,8 +620,7 @@ static int tegra_phy_init(struct usb_phy *x)
		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;
			return PTR_ERR(phy->clk);
		}
		if (!gpio_is_valid(ulpi_config->reset_gpio))
			ulpi_config->reset_gpio =