ASoC: tegra: Fix build warnings in ADMAIF driver

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 <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.9/+/2414632
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sameer Pujar
2020-09-16 19:53:30 +05:30
parent 30706b0cef
commit e834adbfba

View File

@@ -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);