|
@@ -2168,10 +2168,10 @@ static void azx_remove(struct pci_dev *pci)
|
|
struct hda_intel *hda;
|
|
struct hda_intel *hda;
|
|
|
|
|
|
if (card) {
|
|
if (card) {
|
|
- /* flush the pending probing work */
|
|
|
|
|
|
+ /* cancel the pending probing work */
|
|
chip = card->private_data;
|
|
chip = card->private_data;
|
|
hda = container_of(chip, struct hda_intel, chip);
|
|
hda = container_of(chip, struct hda_intel, chip);
|
|
- flush_work(&hda->probe_work);
|
|
|
|
|
|
+ cancel_work_sync(&hda->probe_work);
|
|
|
|
|
|
snd_card_free(card);
|
|
snd_card_free(card);
|
|
}
|
|
}
|