ALSA: hda - Cancel probe work instead of flush at remove
[firefly-linux-kernel-4.4.55.git] / sound / pci / hda / hda_intel.c
index 02a86ba5ba226bc1dcd74c56d6409b8f53427e81..2c13298e80b7477a4bef0646319af55f118831e2 100644 (file)
@@ -2143,10 +2143,10 @@ static void azx_remove(struct pci_dev *pci)
        struct hda_intel *hda;
 
        if (card) {
-               /* flush the pending probing work */
+               /* cancel the pending probing work */
                chip = card->private_data;
                hda = container_of(chip, struct hda_intel, chip);
-               flush_work(&hda->probe_work);
+               cancel_work_sync(&hda->probe_work);
 
                snd_card_free(card);
        }