aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 16:56:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 16:56:39 -0400
commitd3ec4844d449cf7af9e749f73ba2052fb7b72fc2 (patch)
treec515913e85f7e50878c83da2a88bc5a7269d087c /drivers/input
parent0003230e8200699860f0b10af524dc47bf8aecad (diff)
parentdf2e301fee3c2c2a87592151397ad7699bb14c37 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits) fs: Merge split strings treewide: fix potentially dangerous trailing ';' in #defined values/expressions uwb: Fix misspelling of neighbourhood in comment net, netfilter: Remove redundant goto in ebt_ulog_packet trivial: don't touch files that are removed in the staging tree lib/vsprintf: replace link to Draft by final RFC number doc: Kconfig: `to be' -> `be' doc: Kconfig: Typo: square -> squared doc: Konfig: Documentation/power/{pm => apm-acpi}.txt drivers/net: static should be at beginning of declaration drivers/media: static should be at beginning of declaration drivers/i2c: static should be at beginning of declaration XTENSA: static should be at beginning of declaration SH: static should be at beginning of declaration MIPS: static should be at beginning of declaration ARM: static should be at beginning of declaration rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check Update my e-mail address PCIe ASPM: forcedly -> forcibly gma500: push through device driver tree ... Fix up trivial conflicts: - arch/arm/mach-ep93xx/dma-m2p.c (deleted) - drivers/gpio/gpio-ep93xx.c (renamed and context nearby) - drivers/net/r8169.c (just context changes)
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/serio/libps2.c2
-rw-r--r--drivers/input/serio/sa1111ps2.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c
index 980af94ba9c8..07a8363f3c5c 100644
--- a/drivers/input/serio/libps2.c
+++ b/drivers/input/serio/libps2.c
@@ -210,7 +210,7 @@ int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
210 /* 210 /*
211 * Some devices (Synaptics) peform the reset before 211 * Some devices (Synaptics) peform the reset before
212 * ACKing the reset command, and so it can take a long 212 * ACKing the reset command, and so it can take a long
213 * time before the ACK arrrives. 213 * time before the ACK arrives.
214 */ 214 */
215 if (ps2_sendbyte(ps2dev, command & 0xff, 215 if (ps2_sendbyte(ps2dev, command & 0xff,
216 command == PS2_CMD_RESET_BAT ? 1000 : 200)) 216 command == PS2_CMD_RESET_BAT ? 1000 : 200))
diff --git a/drivers/input/serio/sa1111ps2.c b/drivers/input/serio/sa1111ps2.c
index d55874e5d1c2..44fc8b4bcd81 100644
--- a/drivers/input/serio/sa1111ps2.c
+++ b/drivers/input/serio/sa1111ps2.c
@@ -300,8 +300,7 @@ static int __devinit ps2_probe(struct sa1111_dev *dev)
300 300
301 out: 301 out:
302 sa1111_disable_device(ps2if->dev); 302 sa1111_disable_device(ps2if->dev);
303 release_mem_region(dev->res.start, 303 release_mem_region(dev->res.start, resource_size(&dev->res));
304 dev->res.end - dev->res.start + 1);
305 free: 304 free:
306 sa1111_set_drvdata(dev, NULL); 305 sa1111_set_drvdata(dev, NULL);
307 kfree(ps2if); 306 kfree(ps2if);
@@ -317,8 +316,7 @@ static int __devexit ps2_remove(struct sa1111_dev *dev)
317 struct ps2if *ps2if = sa1111_get_drvdata(dev); 316 struct ps2if *ps2if = sa1111_get_drvdata(dev);
318 317
319 serio_unregister_port(ps2if->io); 318 serio_unregister_port(ps2if->io);
320 release_mem_region(dev->res.start, 319 release_mem_region(dev->res.start, resource_size(&dev->res));
321 dev->res.end - dev->res.start + 1);
322 sa1111_set_drvdata(dev, NULL); 320 sa1111_set_drvdata(dev, NULL);
323 321
324 kfree(ps2if); 322 kfree(ps2if);