aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-09-16 22:07:57 +0800
committerMark Brown <broonie@kernel.org>2022-09-23 17:54:16 +0100
commitd508260e89a7d1889bbb5788fdfc52cc3eb8ddb6 (patch)
treee2876f1a42eb1d9c270ea156388a3e9d9e459463 /sound/soc
parentASoC: da7219: Fix an error handling path in da7219_register_dai_clks() (diff)
downloadlinux-dev-d508260e89a7d1889bbb5788fdfc52cc3eb8ddb6.tar.xz
linux-dev-d508260e89a7d1889bbb5788fdfc52cc3eb8ddb6.zip
ASoC: Intel: skylake: remove unnecessary dev_set_drvdata()
Remove unnecessary dev_set_drvdata() in skl_remove(), the driver_data will be set to NULL in device_unbind_cleanup() after calling ->remove(). Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220916140757.681414-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/intel/skylake/skl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 3997af4eaa89..5707dfee603f 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -1127,7 +1127,6 @@ static void skl_remove(struct pci_dev *pci)
if (skl->nhlt)
intel_nhlt_free(skl->nhlt);
skl_free(bus);
- dev_set_drvdata(&pci->dev, NULL);
}
/* PCI IDs */