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

Commit 017300da authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Kishon Vijay Abraham I
Browse files

phy: sun9i-usb: fix error handling



This is likely that checking 'phy->hsic_clk' instead of 'phy->clk' is
expected here.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent bf8ca651
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -141,9 +141,9 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
		}
		}


		phy->hsic_clk = devm_clk_get(dev, "hsic_12M");
		phy->hsic_clk = devm_clk_get(dev, "hsic_12M");
		if (IS_ERR(phy->clk)) {
		if (IS_ERR(phy->hsic_clk)) {
			dev_err(dev, "failed to get hsic_12M clock\n");
			dev_err(dev, "failed to get hsic_12M clock\n");
			return PTR_ERR(phy->clk);
			return PTR_ERR(phy->hsic_clk);
		}
		}


		phy->reset = devm_reset_control_get(dev, "hsic");
		phy->reset = devm_reset_control_get(dev, "hsic");