summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorAxel Lin2015-08-23 04:07:13 +0200
committerMark Brown2015-08-25 11:33:20 +0200
commit5e9a3fcfa2ca10e3ff76938fe9a12515ffa41003 (patch)
tree329b431e6b3c891565f5b6be881c25765be9a2be /sound/soc/tegra
parentASoC: tegra: Revert part of "ASoC: tegra: Convert to managed resources" (diff)
downloadkernel-qcow2-linux-5e9a3fcfa2ca10e3ff76938fe9a12515ffa41003.tar.gz
kernel-qcow2-linux-5e9a3fcfa2ca10e3ff76938fe9a12515ffa41003.tar.xz
kernel-qcow2-linux-5e9a3fcfa2ca10e3ff76938fe9a12515ffa41003.zip
ASoC: tegra: Fix unused variable 'spdif' warning
Fix below build warning: CC [M] sound/soc/tegra/tegra20_spdif.o sound/soc/tegra/tegra20_spdif.c: In function 'tegra20_spdif_platform_remove': sound/soc/tegra/tegra20_spdif.c:361:24: warning: unused variable 'spdif' [-Wunused-variable] Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Vaishali Thakkar <vthakkar1994@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/tegra20_spdif.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c
index 66237bc44033..0809b1ec1171 100644
--- a/sound/soc/tegra/tegra20_spdif.c
+++ b/sound/soc/tegra/tegra20_spdif.c
@@ -358,8 +358,6 @@ err_pm_disable:
static int tegra20_spdif_platform_remove(struct platform_device *pdev)
{
- struct tegra20_spdif *spdif = dev_get_drvdata(&pdev->dev);
-
pm_runtime_disable(&pdev->dev);
if (!pm_runtime_status_suspended(&pdev->dev))
tegra20_spdif_runtime_suspend(&pdev->dev);