ASoC: Intel: skylake: remove unnecessary dev_set_drvdata()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 16 Sep 2022 14:07:57 +0000 (22:07 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 23 Sep 2022 16:54:16 +0000 (17:54 +0100)
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>
sound/soc/intel/skylake/skl.c

index 3997af4..5707dfe 100644 (file)
@@ -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 */