x86_64: Fix modular pc speaker
authorPiotr Kaczuba <pepe@attika.ath.cx>
Mon, 26 Jun 2006 11:59:38 +0000 (13:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:19 +0000 (20:35 -0700)
It turned out that the following change is needed when the speaker is
compiled as a module.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/setup.c

index 655b9192eeb3727d85a8921d10cdd4049c2a5232..e8d5f84417eea53094d993009776daa1700a228a 100644 (file)
@@ -1440,7 +1440,7 @@ struct seq_operations cpuinfo_op = {
        .show = show_cpuinfo,
 };
 
-#ifdef CONFIG_INPUT_PCSPKR
+#if defined(CONFIG_INPUT_PCSPKR) || defined(CONFIG_INPUT_PCSPKR_MODULE)
 #include <linux/platform_device.h>
 static __init int add_pcspkr(void)
 {