summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_wm9712.c
diff options
context:
space:
mode:
authorDonglin Peng2017-08-20 08:02:17 +0200
committerMark Brown2017-08-21 19:15:57 +0200
commite4eabf75ad9a0d4afb4a35c8c4fac7e437d5da06 (patch)
tree8288d64719f83553e797595ff79e65e74c4602b7 /sound/soc/tegra/tegra_wm9712.c
parentASoC: tegra: Remove SoC-specific Kconfig depends and selects (diff)
downloadkernel-qcow2-linux-e4eabf75ad9a0d4afb4a35c8c4fac7e437d5da06.tar.gz
kernel-qcow2-linux-e4eabf75ad9a0d4afb4a35c8c4fac7e437d5da06.tar.xz
kernel-qcow2-linux-e4eabf75ad9a0d4afb4a35c8c4fac7e437d5da06.zip
ASoC: tegra: Remove unnecessary function call
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think that the former copy operation can be removed. Signed-off-by: Peng Donglin <dolinux.peng@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra/tegra_wm9712.c')
-rw-r--r--sound/soc/tegra/tegra_wm9712.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_wm9712.c b/sound/soc/tegra/tegra_wm9712.c
index c9cd22432627..864a3345972e 100644
--- a/sound/soc/tegra/tegra_wm9712.c
+++ b/sound/soc/tegra/tegra_wm9712.c
@@ -81,7 +81,6 @@ static int tegra_wm9712_driver_probe(struct platform_device *pdev)
return -ENOMEM;
card->dev = &pdev->dev;
- platform_set_drvdata(pdev, card);
snd_soc_card_set_drvdata(card, machine);
machine->codec = platform_device_alloc("wm9712-codec", -1);