[2.1.82] drivers/sound/ad1848.c does not compile as MODULE

Dominik Kubla (kubla@sundiver.zdv.uni-mainz.de)
Wed, 28 Jan 1998 00:39:53 +0100


With 2.1.82 (and earlier versions since the modularized sound driver
was introduced) drivers/sound/ad1848.c will not compile unless the following
patch is applied:

============================ Cut here ======================================
--- linux/drivers/sound/ad1848.c.orig Tue Jan 27 21:40:14 1998
+++ linux/drivers/sound/ad1848.c Wed Jan 28 00:34:01 1998
@@ -100,7 +100,7 @@
-1, -1, -1, -1, -1, -1, -1, -1, -1
};

-#if defined(CONFIG_SEQUENCER) && !defined(EXCLUDE_TIMERS)
+#if (defined(CONFIG_SEQUENCER) && !defined(EXCLUDE_TIMERS)) || defined(MODULE)

static int timer_installed = -1;