提交 c0763e68 编写于 作者: V Vasiliy Kulikov 提交者: Takashi Iwai

ALSA: snd-atmel-abdac: test wrong variable

After clk_get() pclk is checked second time instead of sample_clk check.
Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 78ac07b0
......@@ -420,7 +420,7 @@ static int __devinit atmel_abdac_probe(struct platform_device *pdev)
return PTR_ERR(pclk);
}
sample_clk = clk_get(&pdev->dev, "sample_clk");
if (IS_ERR(pclk)) {
if (IS_ERR(sample_clk)) {
dev_dbg(&pdev->dev, "no sample clock\n");
retval = PTR_ERR(pclk);
goto out_put_pclk;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册