From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fallback6.mail.ru (fallback6.mail.ru [94.100.176.134]) by ozlabs.org (Postfix) with ESMTP id 41A9E2C00B6 for ; Sun, 5 Jan 2014 17:30:05 +1100 (EST) Received: from smtp12.mail.ru (smtp12.mail.ru [94.100.176.89]) by fallback6.mail.ru (mPOP.Fallback_MX) with ESMTP id 067662BEEE32 for ; Sun, 5 Jan 2014 10:21:31 +0400 (MSK) From: Alexander Shiyan To: alsa-devel@alsa-project.org Subject: [PATCH] ASoC: fsl_ssi: Fix printing return code on clk error Date: Sun, 5 Jan 2014 10:21:16 +0400 Message-Id: <1388902876-29964-1-git-send-email-shc_work@mail.ru> Cc: Alexander Shiyan , Liam Girdwood , Takashi Iwai , Timur Tabi , Jaroslav Kysela , Mark Brown , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Alexander Shiyan --- sound/soc/fsl/fsl_ssi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 2101fc5..3d74477a 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1192,7 +1192,8 @@ static int fsl_ssi_probe(struct platform_device *pdev) */ ssi_private->baudclk = devm_clk_get(&pdev->dev, "baud"); if (IS_ERR(ssi_private->baudclk)) - dev_warn(&pdev->dev, "could not get baud clock: %d\n", ret); + dev_warn(&pdev->dev, "could not get baud clock: %d\n", + PTR_ERR(ssi_private->baudclk)); else clk_prepare_enable(ssi_private->baudclk); -- 1.8.3.2