From: Takashi Iwai Date: Mon, 22 Nov 2010 07:58:13 +0000 (+0100) Subject: ALSA: atmel - Fix the return value in error path X-Git-Tag: next-20110726~34^2~386^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e61aabdb7608fd63d9705ab8bbf16f5145acead2;p=karo-tx-linux.git ALSA: atmel - Fix the return value in error path In the commit 5ad57d20c91bdaf743bd8e3015df5a388314df8d ALSA: snd-atmel-abdac: test wrong variable the return value via PTR_ERR() had to be fixed as well. Signed-off-by: Takashi Iwai --- 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) 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);