diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-16 22:07:57 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-23 17:54:16 +0100 |
commit | d508260e89a7d1889bbb5788fdfc52cc3eb8ddb6 (patch) | |
tree | e2876f1a42eb1d9c270ea156388a3e9d9e459463 /sound/soc | |
parent | abb4e4349afe7eecdb0499582f1c777031e3a7c8 (diff) | |
download | lwn-d508260e89a7d1889bbb5788fdfc52cc3eb8ddb6.tar.gz lwn-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.c | 1 |
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 */ |