Skip to content

Commit

Permalink
ALSA: atmel - Fix the return value in error path
Browse files Browse the repository at this point in the history
In the commit c0763e6
    ALSA: snd-atmel-abdac: test wrong variable
the return value via PTR_ERR() had to be fixed as well.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 22, 2010
1 parent 673f7a8 commit 1beded5
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 @@ -422,7 +422,7 @@ static int __devinit atmel_abdac_probe(struct platform_device *pdev)
sample_clk = clk_get(&pdev->dev, "sample_clk");
if (IS_ERR(sample_clk)) {
dev_dbg(&pdev->dev, "no sample clock\n");
retval = PTR_ERR(pclk);
retval = PTR_ERR(sample_clk);
goto out_put_pclk;
}
clk_enable(pclk);
Expand Down

0 comments on commit 1beded5

Please sign in to comment.