Skip to content

Commit b3915d1

Browse files
segoonbroonie
authored andcommitted
ASoC: atmel: test wrong variable
After clk_get() mclk is checked second time instead of pllb check. In patch v1 Jarkko Nikula noticed that PTR_ERR() is also has wrong argument. Signed-off-by: Vasiliy Kulikov <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 13a2e06 commit b3915d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/atmel/sam9g20_wm8731.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ static int __init at91sam9g20ek_init(void)
222222
}
223223

224224
pllb = clk_get(NULL, "pllb");
225-
if (IS_ERR(mclk)) {
225+
if (IS_ERR(pllb)) {
226226
printk(KERN_ERR "ASoC: Failed to get PLLB\n");
227-
ret = PTR_ERR(mclk);
227+
ret = PTR_ERR(pllb);
228228
goto err_mclk;
229229
}
230230
ret = clk_set_parent(mclk, pllb);

0 commit comments

Comments
 (0)