Skip to content

Commit

Permalink
ALSA: snd-atmel-abdac: test wrong variable
Browse files Browse the repository at this point in the history
After clk_get() pclk is checked second time instead of sample_clk check.

Signed-off-by: Vasiliy Kulikov <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
segoon authored and tiwai committed Nov 22, 2010
1 parent 78ac07b commit c0763e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/atmel/abdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0763e6

Please sign in to comment.