diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-31 21:16:22 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-31 21:16:22 -0800 |
commit | a1f3d4bba8ea395a39d34ade6017afee8be16031 (patch) | |
tree | 874d843d35622f17aa6c3e048e42cf0d679bcb75 /drivers/input/input.c | |
parent | 723d928417bffff6467da155d8ebbbe016464012 (diff) | |
parent | ebf53826e105f488f4f628703a108e98940d1dc5 (diff) | |
download | talos-obmc-linux-a1f3d4bba8ea395a39d34ade6017afee8be16031.tar.gz talos-obmc-linux-a1f3d4bba8ea395a39d34ade6017afee8be16031.zip |
Merge commit 'v2.6.38-rc3' into next
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 9408dba2cd31..7985114beac7 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -26,7 +26,6 @@ #include <linux/device.h> #include <linux/mutex.h> #include <linux/rcupdate.h> -#include <linux/smp_lock.h> #include "input-compat.h" MODULE_AUTHOR("Vojtech Pavlik <vojtech@suse.cz>"); @@ -755,7 +754,7 @@ static int input_default_setkeycode(struct input_dev *dev, if (index >= dev->keycodemax) return -EINVAL; - if (dev->keycodesize < sizeof(dev->keycode) && + if (dev->keycodesize < sizeof(ke->keycode) && (ke->keycode >> (dev->keycodesize * 8))) return -EINVAL; |