Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: sun9i-usb: fix error handling

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chen-Yu Tsai <wens@csie.org
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Christophe JAILLET and committed by
Kishon Vijay Abraham I
017300da bf8ca651

+2 -2
+2 -2
drivers/phy/phy-sun9i-usb.c
··· 141 141 } 142 142 143 143 phy->hsic_clk = devm_clk_get(dev, "hsic_12M"); 144 - if (IS_ERR(phy->clk)) { 144 + if (IS_ERR(phy->hsic_clk)) { 145 145 dev_err(dev, "failed to get hsic_12M clock\n"); 146 - return PTR_ERR(phy->clk); 146 + return PTR_ERR(phy->hsic_clk); 147 147 } 148 148 149 149 phy->reset = devm_reset_control_get(dev, "hsic");