aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_intel.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 86bbc6307c4f..256e6cda218f 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2151,9 +2151,17 @@ i915_power_fail:
2151static void azx_remove(struct pci_dev *pci) 2151static void azx_remove(struct pci_dev *pci)
2152{ 2152{
2153 struct snd_card *card = pci_get_drvdata(pci); 2153 struct snd_card *card = pci_get_drvdata(pci);
2154 struct azx *chip;
2155 struct hda_intel *hda;
2156
2157 if (card) {
2158 /* flush the pending probing work */
2159 chip = card->private_data;
2160 hda = container_of(chip, struct hda_intel, chip);
2161 flush_work(&hda->probe_work);
2154 2162
2155 if (card)
2156 snd_card_free(card); 2163 snd_card_free(card);
2164 }
2157} 2165}
2158 2166
2159static void azx_shutdown(struct pci_dev *pci) 2167static void azx_shutdown(struct pci_dev *pci)