public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pci enable nm256 audio
@ 2001-04-18 16:16 Marcus Meissner
  0 siblings, 0 replies; only message in thread
From: Marcus Meissner @ 2001-04-18 16:16 UTC (permalink / raw)
  To: linux-kernel, Alan Cox

Hi Alan, linux-kernel,

Some of our customer reported a hang when modprobing nm256_audio, 
this patch should fix the problem.

Ciao, Marcus

Index: nm256_audio.c
===================================================================
RCS file: /build/mm/work/repository/linux-mm/drivers/sound/nm256_audio.c,v
retrieving revision 1.1
diff -u -r1.1 nm256_audio.c
--- nm256_audio.c	2001/04/17 14:50:30	1.1
+++ nm256_audio.c	2001/04/18 16:13:38
@@ -1042,6 +1042,9 @@
     struct pm_dev *pmdev;
     int x;
 
+    if (pci_enable_device(pcidev))
+	    return 0;
+
     card = kmalloc (sizeof (struct nm256_info), GFP_KERNEL);
     if (card == NULL) {
 	printk (KERN_ERR "NM256: out of memory!\n");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-18 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 16:16 [PATCH] pci enable nm256 audio Marcus Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox