Commit d508260e authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220916140757.681414-1-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent abb4e434
...@@ -1127,7 +1127,6 @@ static void skl_remove(struct pci_dev *pci) ...@@ -1127,7 +1127,6 @@ static void skl_remove(struct pci_dev *pci)
if (skl->nhlt) if (skl->nhlt)
intel_nhlt_free(skl->nhlt); intel_nhlt_free(skl->nhlt);
skl_free(bus); skl_free(bus);
dev_set_drvdata(&pci->dev, NULL);
} }
/* PCI IDs */ /* PCI IDs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment