]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
x86_64 modular pcspkr fix, fwd from akpm
authorChris Wright <chrisw@sous-sol.org>
Fri, 30 Jun 2006 01:46:15 +0000 (18:46 -0700)
committerChris Wright <chrisw@sous-sol.org>
Fri, 30 Jun 2006 01:46:15 +0000 (18:46 -0700)
queue-2.6.17/series
queue-2.6.17/x86_64-fix-modular-pc-speaker.patch [new file with mode: 0644]

index d91684eba08a05ac777d57c25f7e46b2edcad947..2519d3528b1c163cc78abc72db1ec3f056fea0b8 100644 (file)
@@ -1,2 +1,3 @@
 xfs-corruption-fix-for-next-stable-release.patch
 ib-mthca-restore-missing-pci-registers-after-reset.patch
+x86_64-fix-modular-pc-speaker.patch
diff --git a/queue-2.6.17/x86_64-fix-modular-pc-speaker.patch b/queue-2.6.17/x86_64-fix-modular-pc-speaker.patch
new file mode 100644 (file)
index 0000000..bd12a27
--- /dev/null
@@ -0,0 +1,26 @@
+From 9c63f8738734eb7e6d3f76ca03186f16ef88edf5 Mon Sep 17 00:00:00 2001
+From: Piotr Kaczuba <pepe@attika.ath.cx>
+Date: Mon, 26 Jun 2006 13:59:38 +0200
+Subject: x86_64: Fix modular pc speaker
+
+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>
+---
+ arch/x86_64/kernel/setup.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.17.2.orig/arch/x86_64/kernel/setup.c
++++ linux-2.6.17.2/arch/x86_64/kernel/setup.c
+@@ -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)
+ {