]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.drivers/ppc64-adb
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / ppc64-adb
diff --git a/src/patches/suse-2.6.27.31/patches.drivers/ppc64-adb b/src/patches/suse-2.6.27.31/patches.drivers/ppc64-adb
new file mode 100644 (file)
index 0000000..fe87d31
--- /dev/null
@@ -0,0 +1,53 @@
+From: Olaf Hering <olh@suse.de>
+Subject: enable mouse button emulation also for G5
+Patch-mainline: never
+
+fix compile errors
+
+ drivers/macintosh/Kconfig  |    2 +-
+ drivers/macintosh/adb.c    |    4 ++++
+ drivers/macintosh/adbhid.c |    6 +++++-
+ 3 files changed, 10 insertions(+), 2 deletions(-)
+
+--- a/drivers/macintosh/Kconfig
++++ b/drivers/macintosh/Kconfig
+@@ -13,7 +13,7 @@ if MACINTOSH_DRIVERS
+ config ADB
+       bool "Apple Desktop Bus (ADB) support"
+-      depends on MAC || (PPC_PMAC && PPC32)
++      depends on MAC || PPC_PMAC
+       help
+         Apple Desktop Bus (ADB) support is for support of devices which
+         are connected to an ADB port.  ADB devices tend to have 4 pins.
+--- a/drivers/macintosh/adb.c
++++ b/drivers/macintosh/adb.c
+@@ -298,6 +298,10 @@ static int __init adb_init(void)
+       if (!machine_is(chrp) && !machine_is(powermac))
+               return 0;
+ #endif
++#ifdef CONFIG_PPC64
++      if (!machine_is(powermac))
++              return 0;
++#endif
+ #ifdef CONFIG_MAC
+       if (!MACH_IS_MAC)
+               return 0;
+--- a/drivers/macintosh/adbhid.c
++++ b/drivers/macintosh/adbhid.c
+@@ -1264,10 +1264,14 @@ init_ms_a3(int id)
+ static int __init adbhid_init(void)
+ {
+-#ifndef CONFIG_MAC
++#ifdef CONFIG_PPC32
+       if (!machine_is(chrp) && !machine_is(powermac))
+               return 0;
+ #endif
++#ifdef CONFIG_PPC64
++      if (!machine_is(powermac))
++              return 0;
++#endif
+       led_request.complete = 1;