diff options
author | Kwangwoo Lee <kwangwoo.lee@gmail.com> | 2009-05-15 22:14:35 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-05-15 22:23:54 -0400 |
commit | 78f7f36711396991431a1d7ceab6103d2c54694c (patch) | |
tree | dee83af35aa0180cf23f568f4d5e0132cc51bd72 /drivers/input | |
parent | 05cebd3816dabfb223abe27b3ad3b50140c457a0 (diff) |
Input: tsc2007 - make sure platform provides get_pendown_state()
The platform codes must provide get_pendown_state() for the driver
to work properly.
Signed-off-by: Kwangwoo Lee <kwangwoo.lee@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/tsc2007.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c index 536668fbda22..edd4f64d1f43 100644 --- a/drivers/input/touchscreen/tsc2007.c +++ b/drivers/input/touchscreen/tsc2007.c | |||
@@ -256,7 +256,7 @@ static int tsc2007_probe(struct i2c_client *client, | |||
256 | struct input_dev *input_dev; | 256 | struct input_dev *input_dev; |
257 | int err; | 257 | int err; |
258 | 258 | ||
259 | if (!pdata) { | 259 | if (!pdata || !pdata->get_pendown_state) { |
260 | dev_err(&client->dev, "platform data is required!\n"); | 260 | dev_err(&client->dev, "platform data is required!\n"); |
261 | return -EINVAL; | 261 | return -EINVAL; |
262 | } | 262 | } |