projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e449edb
)
Input: kxtj9 - fix bug in probe()
author
Dan Carpenter
<error27@gmail.com>
Wed, 20 Jul 2011 06:12:21 +0000
(23:12 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 20 Jul 2011 06:18:05 +0000
(23:18 -0700)
We are testing the wrong variable here. I believe tj9->input_dev
is always NULL at this point, so probe() will fail.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/kxtj9.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/kxtj9.c
b/drivers/input/misc/kxtj9.c
index a416f7f06738c342e1d31a03cdcc0927d7c92a65..6c96dc3a3c8f3862a4718771976b5501fdcb4ecf 100644
(file)
--- a/
drivers/input/misc/kxtj9.c
+++ b/
drivers/input/misc/kxtj9.c
@@
-301,7
+301,7
@@
static int __devinit kxtj9_setup_input_device(struct kxtj9_data *tj9)
int err;
input_dev = input_allocate_device();
- if (!
tj9->
input_dev) {
+ if (!input_dev) {
dev_err(&tj9->client->dev, "input device allocate failed\n");
return -ENOMEM;
}