Skip to content
Snippets Groups Projects
Commit 4fd9fcf7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dmitry Torokhov
Browse files

Input: kxtj9 - fix bug in probe()


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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e449edbb
No related branches found
No related tags found
No related merge requests found
...@@ -301,7 +301,7 @@ static int __devinit kxtj9_setup_input_device(struct kxtj9_data *tj9) ...@@ -301,7 +301,7 @@ static int __devinit kxtj9_setup_input_device(struct kxtj9_data *tj9)
int err; int err;
input_dev = input_allocate_device(); input_dev = input_allocate_device();
if (!tj9->input_dev) { if (!input_dev) {
dev_err(&tj9->client->dev, "input device allocate failed\n"); dev_err(&tj9->client->dev, "input device allocate failed\n");
return -ENOMEM; return -ENOMEM;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment