aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/hda/hdac_bus.c1
-rw-r--r--sound/hda/hdac_device.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/hda/hdac_bus.c b/sound/hda/hdac_bus.c
index 0e81ea89a596..714a51721a31 100644
--- a/sound/hda/hdac_bus.c
+++ b/sound/hda/hdac_bus.c
@@ -212,5 +212,6 @@ void snd_hdac_bus_remove_device(struct hdac_bus *bus,
212 bus->caddr_tbl[codec->addr] = NULL; 212 bus->caddr_tbl[codec->addr] = NULL;
213 clear_bit(codec->addr, &bus->codec_powered); 213 clear_bit(codec->addr, &bus->codec_powered);
214 bus->num_codecs--; 214 bus->num_codecs--;
215 flush_work(&bus->unsol_work);
215} 216}
216EXPORT_SYMBOL_GPL(snd_hdac_bus_remove_device); 217EXPORT_SYMBOL_GPL(snd_hdac_bus_remove_device);
diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c
index 03c9872c31cf..19deb306facb 100644
--- a/sound/hda/hdac_device.c
+++ b/sound/hda/hdac_device.c
@@ -159,6 +159,7 @@ void snd_hdac_device_unregister(struct hdac_device *codec)
159 if (device_is_registered(&codec->dev)) { 159 if (device_is_registered(&codec->dev)) {
160 hda_widget_sysfs_exit(codec); 160 hda_widget_sysfs_exit(codec);
161 device_del(&codec->dev); 161 device_del(&codec->dev);
162 snd_hdac_bus_remove_device(codec->bus, codec);
162 } 163 }
163} 164}
164EXPORT_SYMBOL_GPL(snd_hdac_device_unregister); 165EXPORT_SYMBOL_GPL(snd_hdac_device_unregister);