projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb4e43
)
ASoC: Intel: skylake: remove unnecessary dev_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Fri, 16 Sep 2022 14:07:57 +0000
(22:07 +0800)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/sound/soc/intel/skylake/skl.c
b/sound/soc/intel/skylake/skl.c
index
3997af4
..
5707dfe
100644
(file)
--- 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 */