2.1.7x: uart401.o fails to compile as module. (patch)

David Woodhouse (Dave@imladris.demon.co.uk)
Wed, 14 Jan 1998 05:05:51 +0000


For a while, the sound driver dependencies have failed to make the uart401.o
module when the sound blaster is compiled as a module. This should fix it.

--- /net/jma24/usr/src/linux/drivers/sound/Defines Wed Dec 31 09:30:16 1997
+++ linux/drivers/sound/Defines Wed Jan 14 04:55:44 1998
@@ -97,10 +97,18 @@
endif
endif

-ifdef CONFIG_SB
-ifneq ($(CONFIG_UART401),Y)
-CONFIG_UART401=y
-endif
+
+
+ifdef CONFIG_SB
+ ifeq ($(CONFIG_SB),m)
+ ifneq ($(CONFIG_UART401),Y)
+ CONFIG_UART401=m
+ endif
+ else
+ ifneq ($(CONFIG_UART401),Y)
+ CONFIG_UART401=y
+ endif
+ endif
endif

ifdef CONFIG_TRIX

-- 
----                              ----                              ----
David Woodhouse, Robinson College, CB3 9AN, England.   (+44) 0976 658355
    Dave@imladris.demon.co.uk        http://dwmw2.robinson.cam.ac.uk
	    finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.