ALSA: isight: fix hang when unplugging a running device
[pandora-kernel.git] / sound / firewire / isight.c
index 4d2edcf..9626743 100644 (file)
@@ -692,10 +692,9 @@ static int isight_remove(struct device *dev)
 {
        struct isight *isight = dev_get_drvdata(dev);
 
-       snd_card_disconnect(isight->card);
-
        mutex_lock(&isight->mutex);
        isight_pcm_abort(isight);
+       snd_card_disconnect(isight->card);
        isight_stop_streaming(isight);
        mutex_unlock(&isight->mutex);