diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/Makefile | 1 | ||||
-rw-r--r-- | drivers/input/keyboard/amikbd.c | 2 | ||||
-rw-r--r-- | drivers/input/keyboard/hilkbd.c | 5 | ||||
-rw-r--r-- | drivers/input/keyboard/sunkbd.c | 2 | ||||
-rw-r--r-- | drivers/input/serio/i8042-sparcio.h | 6 | ||||
-rw-r--r-- | drivers/input/serio/serio.c | 6 | ||||
-rw-r--r-- | drivers/input/touchscreen/Kconfig | 2 | ||||
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 2 |
8 files changed, 18 insertions, 8 deletions
diff --git a/drivers/input/Makefile b/drivers/input/Makefile index a005b1df5f1a..da575deb3c7a 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile | |||
@@ -21,3 +21,4 @@ obj-$(CONFIG_INPUT_MOUSE) += mouse/ | |||
21 | obj-$(CONFIG_INPUT_JOYSTICK) += joystick/ | 21 | obj-$(CONFIG_INPUT_JOYSTICK) += joystick/ |
22 | obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/ | 22 | obj-$(CONFIG_INPUT_TOUCHSCREEN) += touchscreen/ |
23 | obj-$(CONFIG_INPUT_MISC) += misc/ | 23 | obj-$(CONFIG_INPUT_MISC) += misc/ |
24 | |||
diff --git a/drivers/input/keyboard/amikbd.c b/drivers/input/keyboard/amikbd.c index 16583d71753b..c67e84ec2d6a 100644 --- a/drivers/input/keyboard/amikbd.c +++ b/drivers/input/keyboard/amikbd.c | |||
@@ -187,7 +187,7 @@ static irqreturn_t amikbd_interrupt(int irq, void *dummy) | |||
187 | 187 | ||
188 | static int __init amikbd_init(void) | 188 | static int __init amikbd_init(void) |
189 | { | 189 | { |
190 | int i, j; | 190 | int i, j, err; |
191 | 191 | ||
192 | if (!AMIGAHW_PRESENT(AMI_KEYBOARD)) | 192 | if (!AMIGAHW_PRESENT(AMI_KEYBOARD)) |
193 | return -ENODEV; | 193 | return -ENODEV; |
diff --git a/drivers/input/keyboard/hilkbd.c b/drivers/input/keyboard/hilkbd.c index 54bc569db4b0..35461eab2faf 100644 --- a/drivers/input/keyboard/hilkbd.c +++ b/drivers/input/keyboard/hilkbd.c | |||
@@ -23,7 +23,12 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/hil.h> | 25 | #include <linux/hil.h> |
26 | #include <linux/io.h> | ||
26 | #include <linux/spinlock.h> | 27 | #include <linux/spinlock.h> |
28 | #include <asm/irq.h> | ||
29 | #ifdef CONFIG_HP300 | ||
30 | #include <asm/hwtest.h> | ||
31 | #endif | ||
27 | 32 | ||
28 | 33 | ||
29 | MODULE_AUTHOR("Philip Blundell, Matthew Wilcox, Helge Deller"); | 34 | MODULE_AUTHOR("Philip Blundell, Matthew Wilcox, Helge Deller"); |
diff --git a/drivers/input/keyboard/sunkbd.c b/drivers/input/keyboard/sunkbd.c index 3826db9403e6..cc0238366414 100644 --- a/drivers/input/keyboard/sunkbd.c +++ b/drivers/input/keyboard/sunkbd.c | |||
@@ -225,7 +225,7 @@ static void sunkbd_reinit(struct work_struct *work) | |||
225 | static void sunkbd_enable(struct sunkbd *sunkbd, int enable) | 225 | static void sunkbd_enable(struct sunkbd *sunkbd, int enable) |
226 | { | 226 | { |
227 | serio_pause_rx(sunkbd->serio); | 227 | serio_pause_rx(sunkbd->serio); |
228 | sunkbd->enabled = 1; | 228 | sunkbd->enabled = enable; |
229 | serio_continue_rx(sunkbd->serio); | 229 | serio_continue_rx(sunkbd->serio); |
230 | } | 230 | } |
231 | 231 | ||
diff --git a/drivers/input/serio/i8042-sparcio.h b/drivers/input/serio/i8042-sparcio.h index 54adba2d8ed5..d9ca55891cd7 100644 --- a/drivers/input/serio/i8042-sparcio.h +++ b/drivers/input/serio/i8042-sparcio.h | |||
@@ -16,6 +16,7 @@ static int i8042_aux_irq = -1; | |||
16 | #define I8042_MUX_PHYS_DESC "sparcps2/serio%d" | 16 | #define I8042_MUX_PHYS_DESC "sparcps2/serio%d" |
17 | 17 | ||
18 | static void __iomem *kbd_iobase; | 18 | static void __iomem *kbd_iobase; |
19 | static struct resource *kbd_res; | ||
19 | 20 | ||
20 | #define I8042_COMMAND_REG (kbd_iobase + 0x64UL) | 21 | #define I8042_COMMAND_REG (kbd_iobase + 0x64UL) |
21 | #define I8042_DATA_REG (kbd_iobase + 0x60UL) | 22 | #define I8042_DATA_REG (kbd_iobase + 0x60UL) |
@@ -60,6 +61,7 @@ static int __devinit sparc_i8042_probe(struct of_device *op, const struct of_dev | |||
60 | i8042_kbd_irq = irq; | 61 | i8042_kbd_irq = irq; |
61 | kbd_iobase = of_ioremap(&kbd->resource[0], | 62 | kbd_iobase = of_ioremap(&kbd->resource[0], |
62 | 0, 8, "kbd"); | 63 | 0, 8, "kbd"); |
64 | kbd_res = &kbd->resource[0]; | ||
63 | } else if (!strcmp(dp->name, OBP_PS2MS_NAME1) || | 65 | } else if (!strcmp(dp->name, OBP_PS2MS_NAME1) || |
64 | !strcmp(dp->name, OBP_PS2MS_NAME2)) { | 66 | !strcmp(dp->name, OBP_PS2MS_NAME2)) { |
65 | struct of_device *ms = of_find_device_by_node(dp); | 67 | struct of_device *ms = of_find_device_by_node(dp); |
@@ -77,7 +79,7 @@ static int __devinit sparc_i8042_probe(struct of_device *op, const struct of_dev | |||
77 | 79 | ||
78 | static int __devexit sparc_i8042_remove(struct of_device *op) | 80 | static int __devexit sparc_i8042_remove(struct of_device *op) |
79 | { | 81 | { |
80 | of_iounmap(kbd_iobase, 8); | 82 | of_iounmap(kbd_res, kbd_iobase, 8); |
81 | 83 | ||
82 | return 0; | 84 | return 0; |
83 | } | 85 | } |
@@ -119,7 +121,7 @@ static int __init i8042_platform_init(void) | |||
119 | if (i8042_kbd_irq == -1 || | 121 | if (i8042_kbd_irq == -1 || |
120 | i8042_aux_irq == -1) { | 122 | i8042_aux_irq == -1) { |
121 | if (kbd_iobase) { | 123 | if (kbd_iobase) { |
122 | of_iounmap(kbd_iobase, 8); | 124 | of_iounmap(kbd_res, kbd_iobase, 8); |
123 | kbd_iobase = (void __iomem *) NULL; | 125 | kbd_iobase = (void __iomem *) NULL; |
124 | } | 126 | } |
125 | return -ENODEV; | 127 | return -ENODEV; |
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index f0ce822c1028..17c8c63cbe1a 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(serio_interrupt); | |||
45 | EXPORT_SYMBOL(__serio_register_port); | 45 | EXPORT_SYMBOL(__serio_register_port); |
46 | EXPORT_SYMBOL(serio_unregister_port); | 46 | EXPORT_SYMBOL(serio_unregister_port); |
47 | EXPORT_SYMBOL(serio_unregister_child_port); | 47 | EXPORT_SYMBOL(serio_unregister_child_port); |
48 | EXPORT_SYMBOL(serio_register_driver); | 48 | EXPORT_SYMBOL(__serio_register_driver); |
49 | EXPORT_SYMBOL(serio_unregister_driver); | 49 | EXPORT_SYMBOL(serio_unregister_driver); |
50 | EXPORT_SYMBOL(serio_open); | 50 | EXPORT_SYMBOL(serio_open); |
51 | EXPORT_SYMBOL(serio_close); | 51 | EXPORT_SYMBOL(serio_close); |
@@ -789,12 +789,14 @@ static void serio_attach_driver(struct serio_driver *drv) | |||
789 | drv->driver.name, error); | 789 | drv->driver.name, error); |
790 | } | 790 | } |
791 | 791 | ||
792 | int serio_register_driver(struct serio_driver *drv) | 792 | int __serio_register_driver(struct serio_driver *drv, struct module *owner, const char *mod_name) |
793 | { | 793 | { |
794 | int manual_bind = drv->manual_bind; | 794 | int manual_bind = drv->manual_bind; |
795 | int error; | 795 | int error; |
796 | 796 | ||
797 | drv->driver.bus = &serio_bus; | 797 | drv->driver.bus = &serio_bus; |
798 | drv->driver.owner = owner; | ||
799 | drv->driver.mod_name = mod_name; | ||
798 | 800 | ||
799 | /* | 801 | /* |
800 | * Temporarily disable automatic binding because probing | 802 | * Temporarily disable automatic binding because probing |
diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index 4bec8422821f..971618059a6f 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig | |||
@@ -151,7 +151,7 @@ config TOUCHSCREEN_TOUCHWIN | |||
151 | 151 | ||
152 | config TOUCHSCREEN_UCB1400 | 152 | config TOUCHSCREEN_UCB1400 |
153 | tristate "Philips UCB1400 touchscreen" | 153 | tristate "Philips UCB1400 touchscreen" |
154 | select SND_AC97_BUS | 154 | select AC97_BUS |
155 | help | 155 | help |
156 | This enables support for the Philips UCB1400 touchscreen interface. | 156 | This enables support for the Philips UCB1400 touchscreen interface. |
157 | The UCB1400 is an AC97 audio codec. The touchscreen interface | 157 | The UCB1400 is an AC97 audio codec. The touchscreen interface |
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index 4358a0a78eaa..c7db4032ef02 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -83,7 +83,7 @@ | |||
83 | 83 | ||
84 | 84 | ||
85 | struct ucb1400 { | 85 | struct ucb1400 { |
86 | ac97_t *ac97; | 86 | struct snd_ac97 *ac97; |
87 | struct input_dev *ts_idev; | 87 | struct input_dev *ts_idev; |
88 | 88 | ||
89 | int irq; | 89 | int irq; |