2001-03-12 09:02:36

by Marcus Meissner

[permalink] [raw]
Subject: PATCH: CS4281: missing pci_enable_dervice

Hi,

My Laptop has a CS4281 soundchip. It requires the following patch to start
working (enable pci device).

Ciao, Marcus

--- linux/drivers/sound/cs4281/cs4281m.c.marcus Mon Mar 12 09:55:35 2001
+++ linux/drivers/sound/cs4281/cs4281m.c Mon Mar 12 09:55:57 2001
@@ -4289,6 +4289,9 @@
CS_DBGOUT(CS_FUNCTION | CS_INIT, 2,
printk(KERN_INFO "cs4281: probe()+\n"));

+ if (pci_enable_device(pcidev))
+ return -1;
+
if (!RSRCISMEMORYREGION(pcidev, 0) ||
!RSRCISMEMORYREGION(pcidev, 1)) {
CS_DBGOUT(CS_ERROR, 1, printk(KERN_ERR