diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2002-08-19 15:20:09 +0200 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-08-19 15:20:09 +0200 |
| commit | 2b2279744097393bb0cb21fa795045e48e275e2e (patch) | |
| tree | 0facbc7d184cbd50af16fc7b32d51bb0f62a0b35 /drivers/input/joystick | |
| parent | 5dfd412e445ec1fe29df7d8c6b47787c9842a5a5 (diff) | |
Compile fixes for Amiga input drivers
Diffstat (limited to 'drivers/input/joystick')
| -rw-r--r-- | drivers/input/joystick/Config.help | 4 | ||||
| -rw-r--r-- | drivers/input/joystick/Config.in | 2 | ||||
| -rw-r--r-- | drivers/input/joystick/amijoy.c | 31 |
3 files changed, 18 insertions, 19 deletions
diff --git a/drivers/input/joystick/Config.help b/drivers/input/joystick/Config.help index 760e852e35c1..0ae13e6c582e 100644 --- a/drivers/input/joystick/Config.help +++ b/drivers/input/joystick/Config.help @@ -203,13 +203,13 @@ CONFIG_JOYSTICK_TURBOGRAFX The module will be called turbografx.o. If you want to compile it as a module, say M here and read <file:Documentation/modules.txt>. -CONFIG_JOYSTICK_AMIJOY +CONFIG_JOYSTICK_AMIGA Say Y here if you have an Amiga with a digital joystick connected to it. This driver is also available as a module ( = code which can be inserted in and removed from the running kernel whenever you want). - The module will be called joy-amiga.o. If you want to compile it as + The module will be called amijoy.o. If you want to compile it as a module, say M here and read <file:Documentation/modules.txt>. CONFIG_INPUT_JOYDUMP diff --git a/drivers/input/joystick/Config.in b/drivers/input/joystick/Config.in index 32e11bcc680e..832387fee1a3 100644 --- a/drivers/input/joystick/Config.in +++ b/drivers/input/joystick/Config.in @@ -28,7 +28,7 @@ dep_tristate ' Multisystem, NES, SNES, N64, PSX joysticks and gamepads' CONFIG_ dep_tristate ' Multisystem joysticks via TurboGraFX device' CONFIG_JOYSTICK_TURBOGRAFX $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_PARPORT if [ "$CONFIG_AMIGA" = "y" ]; then - dep_tristate ' Amiga joysticks' CONFIG_JOYSTICK_AMIJOY $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK + dep_tristate ' Amiga joysticks' CONFIG_JOYSTICK_AMIGA $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK fi dep_tristate ' Gameport data dumper' CONFIG_INPUT_JOYDUMP $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK diff --git a/drivers/input/joystick/amijoy.c b/drivers/input/joystick/amijoy.c index 9cdb6ced9941..0ff0a3c54cff 100644 --- a/drivers/input/joystick/amijoy.c +++ b/drivers/input/joystick/amijoy.c @@ -37,6 +37,7 @@ #include <asm/system.h> #include <asm/amigahw.h> +#include <asm/amigaints.h> MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); MODULE_DESCRIPTION("Driver for Amiga joysticks"); @@ -78,13 +79,13 @@ static int amijoy_open(struct input_dev *dev) if ((*used)++) return 0; - - if (request_irq(IRQ_AMIGA_VERTB, amijoy_interrupt, 0, "amijoy", NULL)) { + + if (request_irq(IRQ_AMIGA_VERTB, amijoy_interrupt, 0, "amijoy", amijoy_interrupt)) { (*used)--; - printk(KERN_ERR "amijoy.c: Can't allocate irq %d\n", amijoy_irq); + printk(KERN_ERR "amijoy.c: Can't allocate irq %d\n", IRQ_AMIGA_VERTB); return -EBUSY; } - + return 0; } @@ -99,8 +100,9 @@ static void amijoy_close(struct input_dev *dev) static int __init amijoy_setup(char *str) { int i; - int ints[4] - str = get_options(str, ARRAY_SIZE(ints), ints); + int ints[4]; + + str = get_options(str, ARRAY_SIZE(ints), ints); for (i = 0; i <= ints[0] && i < 2; i++) amijoy[i] = ints[i+1]; return 1; } @@ -110,9 +112,6 @@ static int __init amijoy_init(void) { int i, j; - init_timer(amijoy_timer); - port->timer.function = amijoy_timer; - for (i = 0; i < 2; i++) if (amijoy[i]) { if (!request_mem_region(CUSTOM_PHYSADDR+10+i*2, 2, @@ -134,12 +133,12 @@ static int __init amijoy_init(void) amijoy_dev[i].absmax[ABS_X + j] = 1; } - amijoy->dev[i].name = amijoy_name; - amijoy->dev[i].phys = amijoy_phys[i]; - amijoy->dev[i].id.bustype = BUS_AMIGA; - amijoy->dev[i].id.vendor = 0x0001; - amijoy->dev[i].id.product = 0x0003; - amijoy->dev[i].id.version = 0x0100; + amijoy_dev[i].name = amijoy_name; + amijoy_dev[i].phys = amijoy_phys[i]; + amijoy_dev[i].id.bustype = BUS_AMIGA; + amijoy_dev[i].id.vendor = 0x0001; + amijoy_dev[i].id.product = 0x0003; + amijoy_dev[i].id.version = 0x0100; amijoy_dev[i].private = amijoy_used + i; @@ -149,7 +148,7 @@ static int __init amijoy_init(void) return 0; } -static void _exit amijoy_exit(void) +static void __exit amijoy_exit(void) { int i; |
