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-Url: https://git.stricted.de/?a=commitdiff_plain;h=1beded5d9ce90256e4a7e7b0e96c317eafe1c513;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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);