[PATCH]: 2.3.99-pre3 sound doesn't compile as a module without PCI

From: Mark Tranchant (mark@tranchant.freeserve.co.uk)
Date: Sat Apr 01 2000 - 01:31:01 EST


If CONFIG_PCI is not set, drivers/sound/soundcard.c won't compile as it tries
to set the symbolic constant isa_dma_bridge_buggy (defined in dma.h, and
defined as extern int with PCI) to a value.

The patch below fixes this, and sound compiles and works here.

######### Cut from here #########

--- linux-orig/drivers/sound/soundcard.c Wed Mar 14 06:19:55 2000
+++ linux/drivers/sound/soundcard.c Wed Mar 29 17:48:59 2000
@@ -668,8 +668,10 @@
 {
         int err;
 
+#ifdef CONFIG_PCI
         if(dmabug)
                 isa_dma_bridge_buggy = dmabug;
+#endif /* CONFIG_PCI */
 
         err = create_special_devices();
         if (err)

######### Finish here #########

-- 
Mark Tranchant
mark@tranchant.freeserve.co.uk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:07 EST