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

Commit b3915d1f authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by Mark Brown
Browse files

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: default avatarVasiliy Kulikov <segoon@openwall.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 13a2e06c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -222,9 +222,9 @@ static int __init at91sam9g20ek_init(void)
	}

	pllb = clk_get(NULL, "pllb");
	if (IS_ERR(mclk)) {
	if (IS_ERR(pllb)) {
		printk(KERN_ERR "ASoC: Failed to get PLLB\n");
		ret = PTR_ERR(mclk);
		ret = PTR_ERR(pllb);
		goto err_mclk;
	}
	ret = clk_set_parent(mclk, pllb);