From patchwork Sat Dec 14 05:15:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 301222 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 54E072C009A for ; Sat, 14 Dec 2013 16:15:48 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751077Ab3LNFPr (ORCPT ); Sat, 14 Dec 2013 00:15:47 -0500 Received: from mail-bk0-f54.google.com ([209.85.214.54]:35196 "EHLO mail-bk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803Ab3LNFPq (ORCPT ); Sat, 14 Dec 2013 00:15:46 -0500 Received: by mail-bk0-f54.google.com with SMTP id v16so1684199bkz.27 for ; Fri, 13 Dec 2013 21:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=8va8y0qkXVAfq+fDhPoew59LCjXZ/EDp2nQ+Tg+pqnE=; b=VQfIjRTCD/ev//7S/kUXASt5Ye4+coNqn/59YUJKewZe/QtcAF26ly1N11aAv4vJmM m2jNOuz3Sz9F/AVzPuoGeDu0KI5NXU2VKrx/Gb0Chq9oKwMx8I4SV7km8e8kOLihhVHB NIvY45cT3Upoy0P0uF02Qhoja0pfqv+ULqMmeB2XxjdN17KPUG+heS+qAmHfCwRSH0bB mcaEIJb6cFCCP1K2V+2N4nzdDxhz8UqCFs0K9OGu1WnH9pTctkdybyMa0FVWDTSJO9dB SRxUyFi1dNZCSAFKyJKDrwBhPYbxUpovdR4DcM8N3az92+D+Pkoi7NQSyNLY/tgoQ3bm SXuQ== MIME-Version: 1.0 X-Received: by 10.205.96.67 with SMTP id cf3mr1331708bkc.32.1386998145741; Fri, 13 Dec 2013 21:15:45 -0800 (PST) Received: by 10.204.74.130 with HTTP; Fri, 13 Dec 2013 21:15:45 -0800 (PST) Date: Sat, 14 Dec 2013 13:15:45 +0800 Message-ID: Subject: [PATCH -next] ASoC: tegra20-ac97: fix error return code in tegra20_ac97_platform_probe() From: Wei Yongjun To: swarren@wwwdotorg.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.de, thierry.reding@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org Cc: yongjun_wei@trendmicro.com.cn, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wei Yongjun Fix to return -ENODEV instead of 0 when no GPIO supplied in tegra20_ac97_platform_probe(). Signed-off-by: Wei Yongjun --- sound/soc/tegra/tegra20_ac97.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index d8b98d7..3ea9738 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c @@ -358,6 +358,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) } } else { dev_err(&pdev->dev, "no codec-reset GPIO supplied\n"); + ret = -ENODEV; goto err_clk_put; } @@ -365,6 +366,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) "nvidia,codec-sync-gpio", 0); if (!gpio_is_valid(ac97->sync_gpio)) { dev_err(&pdev->dev, "no codec-sync GPIO supplied\n"); + ret = -ENODEV; goto err_clk_put; }