diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-11-22 02:58:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-11-22 04:57:17 -0500 |
commit | 1beded5d9ce90256e4a7e7b0e96c317eafe1c513 (patch) | |
tree | 4259cbf7670307f8c89e6cdbba6fa0e82f1f1048 /sound/atmel | |
parent | 673f7a8984c3a9e2cb1108ce221da1ebbd9e5d09 (diff) |
ALSA: atmel - Fix the return value in error path
In the commit c0763e687d0283d0db507813ca4462aa4073c5b5
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>
Diffstat (limited to 'sound/atmel')
-rw-r--r-- | sound/atmel/abdac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c index 4e47baada66f..6e2409181895 100644 --- a/sound/atmel/abdac.c +++ b/sound/atmel/abdac.c | |||
@@ -422,7 +422,7 @@ static int __devinit atmel_abdac_probe(struct platform_device *pdev) | |||
422 | sample_clk = clk_get(&pdev->dev, "sample_clk"); | 422 | sample_clk = clk_get(&pdev->dev, "sample_clk"); |
423 | if (IS_ERR(sample_clk)) { | 423 | if (IS_ERR(sample_clk)) { |
424 | dev_dbg(&pdev->dev, "no sample clock\n"); | 424 | dev_dbg(&pdev->dev, "no sample clock\n"); |
425 | retval = PTR_ERR(pclk); | 425 | retval = PTR_ERR(sample_clk); |
426 | goto out_put_pclk; | 426 | goto out_put_pclk; |
427 | } | 427 | } |
428 | clk_enable(pclk); | 428 | clk_enable(pclk); |