diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
| commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
| tree | 2624a44924c625c367f3cebf937853b9da2de282 /drivers/input | |
| parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
| parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'drivers/input')
28 files changed, 91 insertions, 80 deletions
diff --git a/drivers/input/gameport/emu10k1-gp.c b/drivers/input/gameport/emu10k1-gp.c index 462f8d300aae..9793ac36d17f 100644 --- a/drivers/input/gameport/emu10k1-gp.c +++ b/drivers/input/gameport/emu10k1-gp.c | |||
| @@ -32,7 +32,6 @@ | |||
| 32 | 32 | ||
| 33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
| 34 | #include <linux/ioport.h> | 34 | #include <linux/ioport.h> |
| 35 | #include <linux/config.h> | ||
| 36 | #include <linux/init.h> | 35 | #include <linux/init.h> |
| 37 | #include <linux/gameport.h> | 36 | #include <linux/gameport.h> |
| 38 | #include <linux/slab.h> | 37 | #include <linux/slab.h> |
diff --git a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c index 3e2d28f263e9..f68dbe6f7f04 100644 --- a/drivers/input/gameport/ns558.c +++ b/drivers/input/gameport/ns558.c | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | 33 | ||
| 34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
| 35 | #include <linux/ioport.h> | 35 | #include <linux/ioport.h> |
| 36 | #include <linux/config.h> | ||
| 37 | #include <linux/init.h> | 36 | #include <linux/init.h> |
| 38 | #include <linux/delay.h> | 37 | #include <linux/delay.h> |
| 39 | #include <linux/gameport.h> | 38 | #include <linux/gameport.h> |
diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c index 01dc0b195d59..e9a02db36ecc 100644 --- a/drivers/input/joystick/analog.c +++ b/drivers/input/joystick/analog.c | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic | 28 | * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic |
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | #include <linux/config.h> | ||
| 32 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
| 33 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
| 34 | #include <linux/module.h> | 33 | #include <linux/module.h> |
diff --git a/drivers/input/joystick/iforce/iforce.h b/drivers/input/joystick/iforce/iforce.h index 668f24535ba0..e9924d6f01b3 100644 --- a/drivers/input/joystick/iforce/iforce.h +++ b/drivers/input/joystick/iforce/iforce.h | |||
| @@ -35,7 +35,6 @@ | |||
| 35 | #include <linux/spinlock.h> | 35 | #include <linux/spinlock.h> |
| 36 | #include <linux/usb.h> | 36 | #include <linux/usb.h> |
| 37 | #include <linux/serio.h> | 37 | #include <linux/serio.h> |
| 38 | #include <linux/config.h> | ||
| 39 | #include <linux/circ_buf.h> | 38 | #include <linux/circ_buf.h> |
| 40 | #include <linux/mutex.h> | 39 | #include <linux/mutex.h> |
| 41 | 40 | ||
diff --git a/drivers/input/keyboard/corgikbd.c b/drivers/input/keyboard/corgikbd.c index 1f0e720267d7..1e03153b9bca 100644 --- a/drivers/input/keyboard/corgikbd.c +++ b/drivers/input/keyboard/corgikbd.c | |||
| @@ -352,7 +352,7 @@ static int __init corgikbd_probe(struct platform_device *pdev) | |||
| 352 | for (i = 0; i < CORGI_KEY_SENSE_NUM; i++) { | 352 | for (i = 0; i < CORGI_KEY_SENSE_NUM; i++) { |
| 353 | pxa_gpio_mode(CORGI_GPIO_KEY_SENSE(i) | GPIO_IN); | 353 | pxa_gpio_mode(CORGI_GPIO_KEY_SENSE(i) | GPIO_IN); |
| 354 | if (request_irq(CORGI_IRQ_GPIO_KEY_SENSE(i), corgikbd_interrupt, | 354 | if (request_irq(CORGI_IRQ_GPIO_KEY_SENSE(i), corgikbd_interrupt, |
| 355 | SA_INTERRUPT | SA_TRIGGER_RISING, | 355 | IRQF_DISABLED | IRQF_TRIGGER_RISING, |
| 356 | "corgikbd", corgikbd)) | 356 | "corgikbd", corgikbd)) |
| 357 | printk(KERN_WARNING "corgikbd: Can't get IRQ: %d!\n", i); | 357 | printk(KERN_WARNING "corgikbd: Can't get IRQ: %d!\n", i); |
| 358 | } | 358 | } |
diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c index 33edd030aa75..d22c7c624296 100644 --- a/drivers/input/keyboard/hilkbd.c +++ b/drivers/input/keyboard/hilkbd.c | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #include <linux/pci_ids.h> | 18 | #include <linux/pci_ids.h> |
| 19 | #include <linux/ioport.h> | 19 | #include <linux/ioport.h> |
| 20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
| 21 | #include <linux/config.h> | ||
| 22 | #include <linux/errno.h> | 21 | #include <linux/errno.h> |
| 23 | #include <linux/input.h> | 22 | #include <linux/input.h> |
| 24 | #include <linux/init.h> | 23 | #include <linux/init.h> |
diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c index 2c510881874a..83906f80ba21 100644 --- a/drivers/input/keyboard/locomokbd.c +++ b/drivers/input/keyboard/locomokbd.c | |||
| @@ -25,7 +25,6 @@ | |||
| 25 | * | 25 | * |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
| 28 | #include <linux/config.h> | ||
| 29 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
| 30 | #include <linux/module.h> | 29 | #include <linux/module.h> |
| 31 | #include <linux/init.h> | 30 | #include <linux/init.h> |
diff --git a/drivers/input/keyboard/spitzkbd.c b/drivers/input/keyboard/spitzkbd.c index c5d03fb77bcb..e385710233f4 100644 --- a/drivers/input/keyboard/spitzkbd.c +++ b/drivers/input/keyboard/spitzkbd.c | |||
| @@ -410,7 +410,7 @@ static int __init spitzkbd_probe(struct platform_device *dev) | |||
| 410 | for (i = 0; i < SPITZ_KEY_SENSE_NUM; i++) { | 410 | for (i = 0; i < SPITZ_KEY_SENSE_NUM; i++) { |
| 411 | pxa_gpio_mode(spitz_senses[i] | GPIO_IN); | 411 | pxa_gpio_mode(spitz_senses[i] | GPIO_IN); |
| 412 | if (request_irq(IRQ_GPIO(spitz_senses[i]), spitzkbd_interrupt, | 412 | if (request_irq(IRQ_GPIO(spitz_senses[i]), spitzkbd_interrupt, |
| 413 | SA_INTERRUPT|SA_TRIGGER_RISING, | 413 | IRQF_DISABLED|IRQF_TRIGGER_RISING, |
| 414 | "Spitzkbd Sense", spitzkbd)) | 414 | "Spitzkbd Sense", spitzkbd)) |
| 415 | printk(KERN_WARNING "spitzkbd: Can't get Sense IRQ: %d!\n", i); | 415 | printk(KERN_WARNING "spitzkbd: Can't get Sense IRQ: %d!\n", i); |
| 416 | } | 416 | } |
| @@ -425,19 +425,19 @@ static int __init spitzkbd_probe(struct platform_device *dev) | |||
| 425 | pxa_gpio_mode(SPITZ_GPIO_SWB | GPIO_IN); | 425 | pxa_gpio_mode(SPITZ_GPIO_SWB | GPIO_IN); |
| 426 | 426 | ||
| 427 | request_irq(SPITZ_IRQ_GPIO_SYNC, spitzkbd_interrupt, | 427 | request_irq(SPITZ_IRQ_GPIO_SYNC, spitzkbd_interrupt, |
| 428 | SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, | 428 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
| 429 | "Spitzkbd Sync", spitzkbd); | 429 | "Spitzkbd Sync", spitzkbd); |
| 430 | request_irq(SPITZ_IRQ_GPIO_ON_KEY, spitzkbd_interrupt, | 430 | request_irq(SPITZ_IRQ_GPIO_ON_KEY, spitzkbd_interrupt, |
| 431 | SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, | 431 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
| 432 | "Spitzkbd PwrOn", spitzkbd); | 432 | "Spitzkbd PwrOn", spitzkbd); |
| 433 | request_irq(SPITZ_IRQ_GPIO_SWA, spitzkbd_hinge_isr, | 433 | request_irq(SPITZ_IRQ_GPIO_SWA, spitzkbd_hinge_isr, |
| 434 | SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, | 434 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
| 435 | "Spitzkbd SWA", spitzkbd); | 435 | "Spitzkbd SWA", spitzkbd); |
| 436 | request_irq(SPITZ_IRQ_GPIO_SWB, spitzkbd_hinge_isr, | 436 | request_irq(SPITZ_IRQ_GPIO_SWB, spitzkbd_hinge_isr, |
| 437 | SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, | 437 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
| 438 | "Spitzkbd SWB", spitzkbd); | 438 | "Spitzkbd SWB", spitzkbd); |
| 439 | request_irq(SPITZ_IRQ_GPIO_AK_INT, spitzkbd_hinge_isr, | 439 | request_irq(SPITZ_IRQ_GPIO_AK_INT, spitzkbd_hinge_isr, |
| 440 | SA_INTERRUPT | SA_TRIGGER_RISING | SA_TRIGGER_FALLING, | 440 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
| 441 | "Spitzkbd HP", spitzkbd); | 441 | "Spitzkbd HP", spitzkbd); |
| 442 | 442 | ||
| 443 | printk(KERN_INFO "input: Spitz Keyboard Registered\n"); | 443 | printk(KERN_INFO "input: Spitz Keyboard Registered\n"); |
diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index 3a6ae85cd69c..805b636e73d9 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c | |||
| @@ -113,7 +113,7 @@ static int __devinit ixp4xx_spkr_probe(struct platform_device *dev) | |||
| 113 | input_dev->event = ixp4xx_spkr_event; | 113 | input_dev->event = ixp4xx_spkr_event; |
| 114 | 114 | ||
| 115 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, | 115 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, |
| 116 | SA_INTERRUPT | SA_TIMER, "ixp4xx-beeper", (void *) dev->id); | 116 | IRQF_DISABLED | IRQF_TIMER, "ixp4xx-beeper", (void *) dev->id); |
| 117 | if (err) | 117 | if (err) |
| 118 | goto err_free_device; | 118 | goto err_free_device; |
| 119 | 119 | ||
diff --git a/drivers/input/misc/sparcspkr.c b/drivers/input/misc/sparcspkr.c index 42c11fbf3c79..106c94f33b93 100644 --- a/drivers/input/misc/sparcspkr.c +++ b/drivers/input/misc/sparcspkr.c | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | * Copyright (c) 2002 Vojtech Pavlik | 4 | * Copyright (c) 2002 Vojtech Pavlik |
| 5 | * Copyright (c) 2002, 2006 David S. Miller (davem@davemloft.net) | 5 | * Copyright (c) 2002, 2006 David S. Miller (davem@davemloft.net) |
| 6 | */ | 6 | */ |
| 7 | #include <linux/config.h> | ||
| 8 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
| 9 | #include <linux/module.h> | 8 | #include <linux/module.h> |
| 10 | #include <linux/init.h> | 9 | #include <linux/init.h> |
diff --git a/drivers/input/mouse/inport.c b/drivers/input/mouse/inport.c index afc66f56df43..50f1fed10be4 100644 --- a/drivers/input/mouse/inport.c +++ b/drivers/input/mouse/inport.c | |||
| @@ -36,7 +36,6 @@ | |||
| 36 | 36 | ||
| 37 | #include <linux/module.h> | 37 | #include <linux/module.h> |
| 38 | #include <linux/moduleparam.h> | 38 | #include <linux/moduleparam.h> |
| 39 | #include <linux/config.h> | ||
| 40 | #include <linux/ioport.h> | 39 | #include <linux/ioport.h> |
| 41 | #include <linux/init.h> | 40 | #include <linux/init.h> |
| 42 | #include <linux/interrupt.h> | 41 | #include <linux/interrupt.h> |
diff --git a/drivers/input/mouse/rpcmouse.c b/drivers/input/mouse/rpcmouse.c index 09b6ffdb7582..872b30bf7aad 100644 --- a/drivers/input/mouse/rpcmouse.c +++ b/drivers/input/mouse/rpcmouse.c | |||
| @@ -85,7 +85,7 @@ static int __init rpcmouse_init(void) | |||
| 85 | rpcmouse_lastx = (short) iomd_readl(IOMD_MOUSEX); | 85 | rpcmouse_lastx = (short) iomd_readl(IOMD_MOUSEX); |
| 86 | rpcmouse_lasty = (short) iomd_readl(IOMD_MOUSEY); | 86 | rpcmouse_lasty = (short) iomd_readl(IOMD_MOUSEY); |
| 87 | 87 | ||
| 88 | if (request_irq(IRQ_VSYNCPULSE, rpcmouse_irq, SA_SHIRQ, "rpcmouse", rpcmouse_dev)) { | 88 | if (request_irq(IRQ_VSYNCPULSE, rpcmouse_irq, IRQF_SHARED, "rpcmouse", rpcmouse_dev)) { |
| 89 | printk(KERN_ERR "rpcmouse: unable to allocate VSYNC interrupt\n"); | 89 | printk(KERN_ERR "rpcmouse: unable to allocate VSYNC interrupt\n"); |
| 90 | input_free_device(rpcmouse_dev); | 90 | input_free_device(rpcmouse_dev); |
| 91 | return -EBUSY; | 91 | return -EBUSY; |
diff --git a/drivers/input/mouse/sermouse.c b/drivers/input/mouse/sermouse.c index a89742431717..0023501a5b63 100644 --- a/drivers/input/mouse/sermouse.c +++ b/drivers/input/mouse/sermouse.c | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
| 34 | #include <linux/interrupt.h> | 34 | #include <linux/interrupt.h> |
| 35 | #include <linux/input.h> | 35 | #include <linux/input.h> |
| 36 | #include <linux/config.h> | ||
| 37 | #include <linux/serio.h> | 36 | #include <linux/serio.h> |
| 38 | #include <linux/init.h> | 37 | #include <linux/init.h> |
| 39 | 38 | ||
diff --git a/drivers/input/mouse/vsxxxaa.c b/drivers/input/mouse/vsxxxaa.c index 7b85bc21ae4a..47edcfd022ba 100644 --- a/drivers/input/mouse/vsxxxaa.c +++ b/drivers/input/mouse/vsxxxaa.c | |||
| @@ -81,7 +81,6 @@ | |||
| 81 | #include <linux/slab.h> | 81 | #include <linux/slab.h> |
| 82 | #include <linux/interrupt.h> | 82 | #include <linux/interrupt.h> |
| 83 | #include <linux/input.h> | 83 | #include <linux/input.h> |
| 84 | #include <linux/config.h> | ||
| 85 | #include <linux/serio.h> | 84 | #include <linux/serio.h> |
| 86 | #include <linux/init.h> | 85 | #include <linux/init.h> |
| 87 | 86 | ||
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index eb721b11ff37..1f851acab30d 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
| @@ -19,7 +19,6 @@ | |||
| 19 | #include <linux/moduleparam.h> | 19 | #include <linux/moduleparam.h> |
| 20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
| 21 | #include <linux/input.h> | 21 | #include <linux/input.h> |
| 22 | #include <linux/config.h> | ||
| 23 | #include <linux/smp_lock.h> | 22 | #include <linux/smp_lock.h> |
| 24 | #include <linux/random.h> | 23 | #include <linux/random.h> |
| 25 | #include <linux/major.h> | 24 | #include <linux/major.h> |
diff --git a/drivers/input/power.c b/drivers/input/power.c index 526e6070600c..51a519e24b6d 100644 --- a/drivers/input/power.c +++ b/drivers/input/power.c | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #include <linux/module.h> | 30 | #include <linux/module.h> |
| 31 | #include <linux/config.h> | ||
| 32 | #include <linux/input.h> | 31 | #include <linux/input.h> |
| 33 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
| 34 | #include <linux/init.h> | 33 | #include <linux/init.h> |
diff --git a/drivers/input/serio/ct82c710.c b/drivers/input/serio/ct82c710.c index 096b6a0b5cca..bc6e87add093 100644 --- a/drivers/input/serio/ct82c710.c +++ b/drivers/input/serio/ct82c710.c | |||
| @@ -31,7 +31,6 @@ | |||
| 31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
| 32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
| 33 | #include <linux/ioport.h> | 33 | #include <linux/ioport.h> |
| 34 | #include <linux/config.h> | ||
| 35 | #include <linux/init.h> | 34 | #include <linux/init.h> |
| 36 | #include <linux/interrupt.h> | 35 | #include <linux/interrupt.h> |
| 37 | #include <linux/serio.h> | 36 | #include <linux/serio.h> |
| @@ -189,7 +188,7 @@ static int __devinit ct82c710_probe(struct platform_device *dev) | |||
| 189 | strlcpy(ct82c710_port->name, "C&T 82c710 mouse port", | 188 | strlcpy(ct82c710_port->name, "C&T 82c710 mouse port", |
| 190 | sizeof(ct82c710_port->name)); | 189 | sizeof(ct82c710_port->name)); |
| 191 | snprintf(ct82c710_port->phys, sizeof(ct82c710_port->phys), | 190 | snprintf(ct82c710_port->phys, sizeof(ct82c710_port->phys), |
| 192 | "isa%04lx/serio0", CT82C710_DATA); | 191 | "isa%16llx/serio0", (unsigned long long)CT82C710_DATA); |
| 193 | 192 | ||
| 194 | serio_register_port(ct82c710_port); | 193 | serio_register_port(ct82c710_port); |
| 195 | 194 | ||
| @@ -241,8 +240,8 @@ static int __init ct82c710_init(void) | |||
| 241 | 240 | ||
| 242 | serio_register_port(ct82c710_port); | 241 | serio_register_port(ct82c710_port); |
| 243 | 242 | ||
| 244 | printk(KERN_INFO "serio: C&T 82c710 mouse port at %#lx irq %d\n", | 243 | printk(KERN_INFO "serio: C&T 82c710 mouse port at %#llx irq %d\n", |
| 245 | CT82C710_DATA, CT82C710_IRQ); | 244 | (unsigned long long)CT82C710_DATA, CT82C710_IRQ); |
| 246 | 245 | ||
| 247 | return 0; | 246 | return 0; |
| 248 | 247 | ||
diff --git a/drivers/input/serio/gscps2.c b/drivers/input/serio/gscps2.c index c0b1e4becad3..cde036a92168 100644 --- a/drivers/input/serio/gscps2.c +++ b/drivers/input/serio/gscps2.c | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | * was usable/enabled ?) | 22 | * was usable/enabled ?) |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #include <linux/config.h> | ||
| 26 | #include <linux/init.h> | 25 | #include <linux/init.h> |
| 27 | #include <linux/module.h> | 26 | #include <linux/module.h> |
| 28 | #include <linux/serio.h> | 27 | #include <linux/serio.h> |
| @@ -371,7 +370,7 @@ static int __init gscps2_probe(struct parisc_device *dev) | |||
| 371 | serio->dev.parent = &dev->dev; | 370 | serio->dev.parent = &dev->dev; |
| 372 | 371 | ||
| 373 | ret = -EBUSY; | 372 | ret = -EBUSY; |
| 374 | if (request_irq(dev->irq, gscps2_interrupt, SA_SHIRQ, ps2port->port->name, ps2port)) | 373 | if (request_irq(dev->irq, gscps2_interrupt, IRQF_SHARED, ps2port->port->name, ps2port)) |
| 375 | goto fail_miserably; | 374 | goto fail_miserably; |
| 376 | 375 | ||
| 377 | if (ps2port->id != GSC_ID_KEYBOARD && ps2port->id != GSC_ID_MOUSE) { | 376 | if (ps2port->id != GSC_ID_KEYBOARD && ps2port->id != GSC_ID_MOUSE) { |
diff --git a/drivers/input/serio/i8042-sparcio.h b/drivers/input/serio/i8042-sparcio.h index 6d66351805a2..7d9fafea9615 100644 --- a/drivers/input/serio/i8042-sparcio.h +++ b/drivers/input/serio/i8042-sparcio.h | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | #ifndef _I8042_SPARCIO_H | 1 | #ifndef _I8042_SPARCIO_H |
| 2 | #define _I8042_SPARCIO_H | 2 | #define _I8042_SPARCIO_H |
| 3 | 3 | ||
| 4 | #include <linux/config.h> | ||
| 5 | #include <asm/io.h> | 4 | #include <asm/io.h> |
| 6 | |||
| 7 | #ifdef CONFIG_PCI | ||
| 8 | #include <asm/oplib.h> | 5 | #include <asm/oplib.h> |
| 9 | #include <asm/ebus.h> | 6 | #include <asm/prom.h> |
| 10 | #endif | 7 | #include <asm/of_device.h> |
| 11 | 8 | ||
| 12 | static int i8042_kbd_irq = -1; | 9 | static int i8042_kbd_irq = -1; |
| 13 | static int i8042_aux_irq = -1; | 10 | static int i8042_aux_irq = -1; |
| @@ -48,54 +45,83 @@ static inline void i8042_write_command(int val) | |||
| 48 | #define OBP_PS2MS_NAME1 "kdmouse" | 45 | #define OBP_PS2MS_NAME1 "kdmouse" |
| 49 | #define OBP_PS2MS_NAME2 "mouse" | 46 | #define OBP_PS2MS_NAME2 "mouse" |
| 50 | 47 | ||
| 48 | static int __devinit sparc_i8042_probe(struct of_device *op, const struct of_device_id *match) | ||
| 49 | { | ||
| 50 | struct device_node *dp = op->node; | ||
| 51 | |||
| 52 | dp = dp->child; | ||
| 53 | while (dp) { | ||
| 54 | if (!strcmp(dp->name, OBP_PS2KBD_NAME1) || | ||
| 55 | !strcmp(dp->name, OBP_PS2KBD_NAME2)) { | ||
| 56 | struct of_device *kbd = of_find_device_by_node(dp); | ||
| 57 | unsigned int irq = kbd->irqs[0]; | ||
| 58 | if (irq == 0xffffffff) | ||
| 59 | irq = op->irqs[0]; | ||
| 60 | i8042_kbd_irq = irq; | ||
| 61 | kbd_iobase = of_ioremap(&kbd->resource[0], | ||
| 62 | 0, 8, "kbd"); | ||
| 63 | } else if (!strcmp(dp->name, OBP_PS2MS_NAME1) || | ||
| 64 | !strcmp(dp->name, OBP_PS2MS_NAME2)) { | ||
| 65 | struct of_device *ms = of_find_device_by_node(dp); | ||
| 66 | unsigned int irq = ms->irqs[0]; | ||
| 67 | if (irq == 0xffffffff) | ||
| 68 | irq = op->irqs[0]; | ||
| 69 | i8042_aux_irq = irq; | ||
| 70 | } | ||
| 71 | |||
| 72 | dp = dp->sibling; | ||
| 73 | } | ||
| 74 | |||
| 75 | return 0; | ||
| 76 | } | ||
| 77 | |||
| 78 | static int __devexit sparc_i8042_remove(struct of_device *op) | ||
| 79 | { | ||
| 80 | of_iounmap(kbd_iobase, 8); | ||
| 81 | |||
| 82 | return 0; | ||
| 83 | } | ||
| 84 | |||
| 85 | static struct of_device_id sparc_i8042_match[] = { | ||
| 86 | { | ||
| 87 | .name = "8042", | ||
| 88 | }, | ||
| 89 | {}, | ||
| 90 | }; | ||
| 91 | MODULE_DEVICE_TABLE(of, i8042_match); | ||
| 92 | |||
| 93 | static struct of_platform_driver sparc_i8042_driver = { | ||
| 94 | .name = "i8042", | ||
| 95 | .match_table = sparc_i8042_match, | ||
| 96 | .probe = sparc_i8042_probe, | ||
| 97 | .remove = __devexit_p(sparc_i8042_remove), | ||
| 98 | }; | ||
| 99 | |||
| 51 | static int __init i8042_platform_init(void) | 100 | static int __init i8042_platform_init(void) |
| 52 | { | 101 | { |
| 53 | #ifndef CONFIG_PCI | 102 | #ifndef CONFIG_PCI |
| 54 | return -ENODEV; | 103 | return -ENODEV; |
| 55 | #else | 104 | #else |
| 56 | char prop[128]; | 105 | struct device_node *root = of_find_node_by_path("/"); |
| 57 | int len; | ||
| 58 | 106 | ||
| 59 | len = prom_getproperty(prom_root_node, "name", prop, sizeof(prop)); | 107 | if (!strcmp(root->name, "SUNW,JavaStation-1")) { |
| 60 | if (len < 0) { | ||
| 61 | printk("i8042: Cannot get name property of root OBP node.\n"); | ||
| 62 | return -ENODEV; | ||
| 63 | } | ||
| 64 | if (strncmp(prop, "SUNW,JavaStation-1", len) == 0) { | ||
| 65 | /* Hardcoded values for MrCoffee. */ | 108 | /* Hardcoded values for MrCoffee. */ |
| 66 | i8042_kbd_irq = i8042_aux_irq = 13 | 0x20; | 109 | i8042_kbd_irq = i8042_aux_irq = 13 | 0x20; |
| 67 | kbd_iobase = ioremap(0x71300060, 8); | 110 | kbd_iobase = ioremap(0x71300060, 8); |
| 68 | if (!kbd_iobase) | 111 | if (!kbd_iobase) |
| 69 | return -ENODEV; | 112 | return -ENODEV; |
| 70 | } else { | 113 | } else { |
| 71 | struct linux_ebus *ebus; | 114 | int err = of_register_driver(&sparc_i8042_driver, |
| 72 | struct linux_ebus_device *edev; | 115 | &of_bus_type); |
| 73 | struct linux_ebus_child *child; | 116 | if (err) |
| 74 | 117 | return err; | |
| 75 | for_each_ebus(ebus) { | 118 | |
| 76 | for_each_ebusdev(edev, ebus) { | ||
| 77 | if (!strcmp(edev->prom_node->name, "8042")) | ||
| 78 | goto edev_found; | ||
| 79 | } | ||
| 80 | } | ||
| 81 | return -ENODEV; | ||
| 82 | |||
| 83 | edev_found: | ||
| 84 | for_each_edevchild(edev, child) { | ||
| 85 | if (!strcmp(child->prom_node->name, OBP_PS2KBD_NAME1) || | ||
| 86 | !strcmp(child->prom_node->name, OBP_PS2KBD_NAME2)) { | ||
| 87 | i8042_kbd_irq = child->irqs[0]; | ||
| 88 | kbd_iobase = | ||
| 89 | ioremap(child->resource[0].start, 8); | ||
| 90 | } | ||
| 91 | if (!strcmp(child->prom_node->name, OBP_PS2MS_NAME1) || | ||
| 92 | !strcmp(child->prom_node->name, OBP_PS2MS_NAME2)) | ||
| 93 | i8042_aux_irq = child->irqs[0]; | ||
| 94 | } | ||
| 95 | if (i8042_kbd_irq == -1 || | 119 | if (i8042_kbd_irq == -1 || |
| 96 | i8042_aux_irq == -1) { | 120 | i8042_aux_irq == -1) { |
| 97 | printk("i8042: Error, 8042 device lacks both kbd and " | 121 | if (kbd_iobase) { |
| 98 | "mouse nodes.\n"); | 122 | of_iounmap(kbd_iobase, 8); |
| 123 | kbd_iobase = (void __iomem *) NULL; | ||
| 124 | } | ||
| 99 | return -ENODEV; | 125 | return -ENODEV; |
| 100 | } | 126 | } |
| 101 | } | 127 | } |
| @@ -109,7 +135,10 @@ static int __init i8042_platform_init(void) | |||
| 109 | static inline void i8042_platform_exit(void) | 135 | static inline void i8042_platform_exit(void) |
| 110 | { | 136 | { |
| 111 | #ifdef CONFIG_PCI | 137 | #ifdef CONFIG_PCI |
| 112 | iounmap(kbd_iobase); | 138 | struct device_node *root = of_find_node_by_path("/"); |
| 139 | |||
| 140 | if (strcmp(root->name, "SUNW,JavaStation-1")) | ||
| 141 | of_unregister_driver(&sparc_i8042_driver); | ||
| 113 | #endif | 142 | #endif |
| 114 | } | 143 | } |
| 115 | 144 | ||
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index a7d91d5356a5..06a3f25657dd 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | #include <linux/moduleparam.h> | 15 | #include <linux/moduleparam.h> |
| 16 | #include <linux/interrupt.h> | 16 | #include <linux/interrupt.h> |
| 17 | #include <linux/ioport.h> | 17 | #include <linux/ioport.h> |
| 18 | #include <linux/config.h> | ||
| 19 | #include <linux/init.h> | 18 | #include <linux/init.h> |
| 20 | #include <linux/serio.h> | 19 | #include <linux/serio.h> |
| 21 | #include <linux/err.h> | 20 | #include <linux/err.h> |
| @@ -329,7 +328,7 @@ static int i8042_open(struct serio *serio) | |||
| 329 | return 0; | 328 | return 0; |
| 330 | 329 | ||
| 331 | if (request_irq(port->irq, i8042_interrupt, | 330 | if (request_irq(port->irq, i8042_interrupt, |
| 332 | SA_SHIRQ, "i8042", i8042_request_irq_cookie)) { | 331 | IRQF_SHARED, "i8042", i8042_request_irq_cookie)) { |
| 333 | printk(KERN_ERR "i8042.c: Can't get irq %d for %s, unregistering the port.\n", port->irq, port->name); | 332 | printk(KERN_ERR "i8042.c: Can't get irq %d for %s, unregistering the port.\n", port->irq, port->name); |
| 334 | goto irq_fail; | 333 | goto irq_fail; |
| 335 | } | 334 | } |
| @@ -611,7 +610,7 @@ static int __devinit i8042_check_aux(void) | |||
| 611 | */ | 610 | */ |
| 612 | 611 | ||
| 613 | if (request_irq(i8042_ports[I8042_AUX_PORT_NO].irq, i8042_interrupt, | 612 | if (request_irq(i8042_ports[I8042_AUX_PORT_NO].irq, i8042_interrupt, |
| 614 | SA_SHIRQ, "i8042", &i8042_check_aux_cookie)) | 613 | IRQF_SHARED, "i8042", &i8042_check_aux_cookie)) |
| 615 | return -1; | 614 | return -1; |
| 616 | free_irq(i8042_ports[I8042_AUX_PORT_NO].irq, &i8042_check_aux_cookie); | 615 | free_irq(i8042_ports[I8042_AUX_PORT_NO].irq, &i8042_check_aux_cookie); |
| 617 | 616 | ||
diff --git a/drivers/input/serio/i8042.h b/drivers/input/serio/i8042.h index cbbf3842da5b..af526ab9ec04 100644 --- a/drivers/input/serio/i8042.h +++ b/drivers/input/serio/i8042.h | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | #ifndef _I8042_H | 1 | #ifndef _I8042_H |
| 2 | #define _I8042_H | 2 | #define _I8042_H |
| 3 | 3 | ||
| 4 | #include <linux/config.h> | ||
| 5 | 4 | ||
| 6 | /* | 5 | /* |
| 7 | * Copyright (c) 1999-2002 Vojtech Pavlik | 6 | * Copyright (c) 1999-2002 Vojtech Pavlik |
diff --git a/drivers/input/serio/pcips2.c b/drivers/input/serio/pcips2.c index 1e139c5e59de..fb727c665253 100644 --- a/drivers/input/serio/pcips2.c +++ b/drivers/input/serio/pcips2.c | |||
| @@ -107,7 +107,7 @@ static int pcips2_open(struct serio *io) | |||
| 107 | outb(PS2_CTRL_ENABLE, ps2if->base); | 107 | outb(PS2_CTRL_ENABLE, ps2if->base); |
| 108 | pcips2_flush_input(ps2if); | 108 | pcips2_flush_input(ps2if); |
| 109 | 109 | ||
| 110 | ret = request_irq(ps2if->dev->irq, pcips2_interrupt, SA_SHIRQ, | 110 | ret = request_irq(ps2if->dev->irq, pcips2_interrupt, IRQF_SHARED, |
| 111 | "pcips2", ps2if); | 111 | "pcips2", ps2if); |
| 112 | if (ret == 0) | 112 | if (ret == 0) |
| 113 | val = PS2_CTRL_ENABLE | PS2_CTRL_RXIRQ; | 113 | val = PS2_CTRL_ENABLE | PS2_CTRL_RXIRQ; |
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index 5a2703b536dc..71a8eea816cb 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 17 | #include <linux/major.h> | 17 | #include <linux/major.h> |
| 18 | #include <linux/device.h> | 18 | #include <linux/device.h> |
| 19 | #include <linux/devfs_fs_kernel.h> | ||
| 20 | #include <linux/miscdevice.h> | 19 | #include <linux/miscdevice.h> |
| 21 | #include <linux/wait.h> | 20 | #include <linux/wait.h> |
| 22 | #include <linux/mutex.h> | 21 | #include <linux/mutex.h> |
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 386023c594d7..66e411badf70 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
| @@ -773,7 +773,7 @@ static int __devinit ads7846_probe(struct spi_device *spi) | |||
| 773 | 773 | ||
| 774 | ts->last_msg = m; | 774 | ts->last_msg = m; |
| 775 | 775 | ||
| 776 | if (request_irq(spi->irq, ads7846_irq, SA_TRIGGER_FALLING, | 776 | if (request_irq(spi->irq, ads7846_irq, IRQF_TRIGGER_FALLING, |
| 777 | spi->dev.driver->name, ts)) { | 777 | spi->dev.driver->name, ts)) { |
| 778 | dev_dbg(&spi->dev, "irq %d busy?\n", spi->irq); | 778 | dev_dbg(&spi->dev, "irq %d busy?\n", spi->irq); |
| 779 | err = -EBUSY; | 779 | err = -EBUSY; |
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c index 5013703db0e6..9b66271d3ba8 100644 --- a/drivers/input/touchscreen/corgi_ts.c +++ b/drivers/input/touchscreen/corgi_ts.c | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include <linux/interrupt.h> | 17 | #include <linux/interrupt.h> |
| 18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| 19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
| 20 | //#include <asm/irq.h> | 20 | #include <linux/irq.h> |
| 21 | 21 | ||
| 22 | #include <asm/arch/sharpsl.h> | 22 | #include <asm/arch/sharpsl.h> |
| 23 | #include <asm/arch/hardware.h> | 23 | #include <asm/arch/hardware.h> |
| @@ -318,7 +318,7 @@ static int __init corgits_probe(struct platform_device *pdev) | |||
| 318 | corgi_ssp_ads7846_putget((5u << ADSCTRL_ADR_SH) | ADSCTRL_STS); | 318 | corgi_ssp_ads7846_putget((5u << ADSCTRL_ADR_SH) | ADSCTRL_STS); |
| 319 | mdelay(5); | 319 | mdelay(5); |
| 320 | 320 | ||
| 321 | if (request_irq(corgi_ts->irq_gpio, ts_interrupt, SA_INTERRUPT, "ts", corgi_ts)) { | 321 | if (request_irq(corgi_ts->irq_gpio, ts_interrupt, IRQF_DISABLED, "ts", corgi_ts)) { |
| 322 | err = -EBUSY; | 322 | err = -EBUSY; |
| 323 | goto fail; | 323 | goto fail; |
| 324 | } | 324 | } |
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c index 2de2139f2fed..e2b910018773 100644 --- a/drivers/input/touchscreen/h3600_ts_input.c +++ b/drivers/input/touchscreen/h3600_ts_input.c | |||
| @@ -399,14 +399,14 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv) | |||
| 399 | set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE); | 399 | set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE); |
| 400 | 400 | ||
| 401 | if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler, | 401 | if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler, |
| 402 | SA_SHIRQ | SA_INTERRUPT, "h3600_action", &ts->dev)) { | 402 | IRQF_SHARED | IRQF_DISABLED, "h3600_action", &ts->dev)) { |
| 403 | printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n"); | 403 | printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n"); |
| 404 | err = -EBUSY; | 404 | err = -EBUSY; |
| 405 | goto fail2; | 405 | goto fail2; |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler, | 408 | if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler, |
| 409 | SA_SHIRQ | SA_INTERRUPT, "h3600_suspend", &ts->dev)) { | 409 | IRQF_SHARED | IRQF_DISABLED, "h3600_suspend", &ts->dev)) { |
| 410 | printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n"); | 410 | printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n"); |
| 411 | err = -EBUSY; | 411 | err = -EBUSY; |
| 412 | goto fail3; | 412 | goto fail3; |
diff --git a/drivers/input/touchscreen/hp680_ts_input.c b/drivers/input/touchscreen/hp680_ts_input.c index 957dd5a1b15e..fa97e0f79e7e 100644 --- a/drivers/input/touchscreen/hp680_ts_input.c +++ b/drivers/input/touchscreen/hp680_ts_input.c | |||
| @@ -109,7 +109,7 @@ static int __init hp680_ts_init(void) | |||
| 109 | input_register_device(hp680_ts_dev); | 109 | input_register_device(hp680_ts_dev); |
| 110 | 110 | ||
| 111 | if (request_irq(HP680_TS_IRQ, hp680_ts_interrupt, | 111 | if (request_irq(HP680_TS_IRQ, hp680_ts_interrupt, |
| 112 | SA_INTERRUPT, MODNAME, 0) < 0) { | 112 | IRQF_DISABLED, MODNAME, 0) < 0) { |
| 113 | printk(KERN_ERR "hp680_touchscreen.c: Can't allocate irq %d\n", | 113 | printk(KERN_ERR "hp680_touchscreen.c: Can't allocate irq %d\n", |
| 114 | HP680_TS_IRQ); | 114 | HP680_TS_IRQ); |
| 115 | input_unregister_device(hp680_ts_dev); | 115 | input_unregister_device(hp680_ts_dev); |
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c index 5f9ecad2ca75..00e3929c6288 100644 --- a/drivers/input/tsdev.c +++ b/drivers/input/tsdev.c | |||
| @@ -48,7 +48,6 @@ | |||
| 48 | #include <linux/init.h> | 48 | #include <linux/init.h> |
| 49 | #include <linux/input.h> | 49 | #include <linux/input.h> |
| 50 | #include <linux/major.h> | 50 | #include <linux/major.h> |
| 51 | #include <linux/config.h> | ||
| 52 | #include <linux/smp_lock.h> | 51 | #include <linux/smp_lock.h> |
| 53 | #include <linux/random.h> | 52 | #include <linux/random.h> |
| 54 | #include <linux/time.h> | 53 | #include <linux/time.h> |
