diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2003-07-25 19:15:26 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2003-07-25 19:15:26 -0700 |
| commit | e80cbdd3ffaa2e8f8a7b30036eb6a05b289656b7 (patch) | |
| tree | 7fca9ce704ac273c82cd902390e31fb53e4a9ddb | |
| parent | e9a5b39d8a1d4bf44307c30e41bc769fbef00eac (diff) | |
[PATCH] Mac/m68k ADB HID
ADB HID: Exclude PowerMac-specific things on classic Macs
| -rw-r--r-- | drivers/macintosh/adbhid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index f47a476620fb..9fe903a5b249 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c @@ -44,7 +44,9 @@ #include <linux/pmu.h> #include <asm/machdep.h> +#ifdef CONFIG_PPC_PMAC #include <asm/pmac_feature.h> +#endif #ifdef CONFIG_PMAC_BACKLIGHT #include <asm/backlight.h> @@ -160,6 +162,7 @@ adbhid_input_keycode(int id, int keycode, int repeat, struct pt_regs *regs) return; case 0x3f: /* ignore Powerbook Fn key */ return; +#ifdef CONFIG_PPC_PMAC case 0x7e: /* Power key on PBook 3400 needs remapping */ switch(pmac_call_feature(PMAC_FTR_GET_MB_INFO, NULL, PMAC_MB_INFO_MODEL, 0)) { @@ -169,6 +172,7 @@ adbhid_input_keycode(int id, int keycode, int repeat, struct pt_regs *regs) keycode = 0x7f; } break; +#endif /* CONFIG_PPC_PMAC */ } if (adbhid[id]->keycode[keycode]) { |
