From 11a52e63fe6a04574625407680925e1413dd2023 Mon Sep 17 00:00:00 2001 From: Rahul Mittal Date: Tue, 2 Dec 2014 15:30:53 +0530 Subject: [PATCH] ASoC: tegra-alt: Fix coverity issues in dmic Coverity id : 28230 Bug 1416640 Change-Id: Ie0a5b28541c9c750ac6d45e8fe2f088757bcbe3f Signed-off-by: Rahul Mittal Reviewed-on: http://git-master/r/658389 Reviewed-by: Deepak Nibade Reviewed-by: Ravindra Lokhande GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- sound/soc/tegra-alt/tegra210_dmic_alt.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_dmic_alt.c b/sound/soc/tegra-alt/tegra210_dmic_alt.c index 8451b57f..95239eba 100644 --- a/sound/soc/tegra-alt/tegra210_dmic_alt.c +++ b/sound/soc/tegra-alt/tegra210_dmic_alt.c @@ -361,14 +361,12 @@ static int tegra210_dmic_platform_probe(struct platform_device *pdev) dmic->soc_data = soc_data; -#ifndef CONFIG_MACH_GRENADA dmic->clk_dmic = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(dmic->clk_dmic)) { dev_err(&pdev->dev, "Can't retrieve dmic clock\n"); ret = PTR_ERR(dmic->clk_dmic); goto err; } -#endif mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!mem) { @@ -433,9 +431,7 @@ err_suspend: err_pm_disable: pm_runtime_disable(&pdev->dev); err_clk_put: -#ifndef CONFIG_MACH_GRENADA devm_clk_put(&pdev->dev, dmic->clk_dmic); -#endif err: return ret; } @@ -451,9 +447,7 @@ static int tegra210_dmic_platform_remove(struct platform_device *pdev) if (!pm_runtime_status_suspended(&pdev->dev)) tegra210_dmic_runtime_suspend(&pdev->dev); -#ifndef CONFIG_MACH_GRENADA devm_clk_put(&pdev->dev, dmic->clk_dmic); -#endif return 0; }