From e834adbfbaa22069126330bf68e8f8e3fa32c8e5 Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Wed, 16 Sep 2020 19:53:30 +0530 Subject: [PATCH] ASoC: tegra: Fix build warnings in ADMAIF driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following build warnings have popped up after 'is_isomgr_client' flag is cleaned up from the ADMAIF driver. tegra210_admaif.c: In function ‘tegra_admaif_prepare’: tegra210_admaif.c:271:23: warning: unused variable ‘admaif' struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); ^~~~~~ tegra210_admaif.c: In function ‘tegra_admaif_shutdown’: tegra210_admaif.c:281:23: warning: unused variable ‘admaif’ struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); ^~~~~~ tegra210_admaif.c: In function ‘tegra_admaif_remove’: tegra210_admaif.c:1141:23: warning: unused variable ‘admaif’ struct tegra_admaif *admaif = dev_get_drvdata(&pdev->dev); ^~~~~~ Fix these by removing unused variable ‘admaif' from above functions. Jira TAS-1059 Change-Id: I323df87415727b3deae0e5ba2aa05ef735c047da Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.9/+/2414632 Tested-by: mobile promotions Reviewed-by: mobile promotions --- sound/soc/tegra/tegra210_admaif.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/tegra/tegra210_admaif.c b/sound/soc/tegra/tegra210_admaif.c index ee8c6669..219debf3 100644 --- a/sound/soc/tegra/tegra210_admaif.c +++ b/sound/soc/tegra/tegra210_admaif.c @@ -266,8 +266,6 @@ static int tegra_admaif_set_pack_mode(struct regmap *map, unsigned int reg, static int tegra_admaif_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { - struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); - tegra_isomgr_adma_setbw(substream, true); return 0; @@ -276,8 +274,6 @@ static int tegra_admaif_prepare(struct snd_pcm_substream *substream, static void tegra_admaif_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { - struct tegra_admaif *admaif = snd_soc_dai_get_drvdata(dai); - tegra_isomgr_adma_setbw(substream, false); } @@ -1140,8 +1136,6 @@ static int tegra_admaif_probe(struct platform_device *pdev) static int tegra_admaif_remove(struct platform_device *pdev) { - struct tegra_admaif *admaif = dev_get_drvdata(&pdev->dev); - tegra_isomgr_adma_unregister(&pdev->dev); pm_runtime_disable(&pdev->dev);