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: Dan Carpenter <error27@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
e449edbb91
commit
4fd9fcf7c1
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue