Skip to contentSkip to conversation

(resend) echoaudio disable device

PATCH Applied Giuliano Pochini 2 participants 2 messages May 11, 2005 – May 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (resend) echoaudio disable device

*sigh*

- Add missing calls to pci_disable_device()

pci/echoaudio/echoaudio.c +5 -1
diff -du alsa-driver__orig/pci/echoaudio/echoaudio.c alsa-driver/pci/echoaudio/echoaudio.c
@@ -1746,6 +1746,8 @@
 	}
 	DE_INIT(("MMIO freed.\n"));
 
+	pci_disable_device(chip->pci);
+
 	/* release chip data */
 	kfree(chip);
 	DE_INIT(("Chip freed.\n"));
@@ -1784,8 +1786,10 @@
 
 	/* allocate a chip-specific data */
 	chip = kcalloc(1, sizeof(echoaudio_t), GFP_KERNEL);
-	if (!chip)
+	if (!chip) {
+		pci_disable_device(pci);
 		return -ENOMEM;
+	}
 	DE_INIT(("chip=%p\n", chip));
 
 	spin_lock_init(&chip->lock);

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click

Applied
#1 lore raw

At Wed, 11 May 2005 22:36:01 +0200,

Quoted 8 lines · Giuliano Pochini

*sigh*

- Add missing calls to pci_disable_device()

Thanks, applied now. (sorry for the delay - I've been in vacation)

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click