git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Input: tsc2007 - make sure platform provides get_pendown_state()
[safe/jmp/linux-2.6]
/
drivers
/
input
/
touchscreen
/
tsc2007.c
diff --git
a/drivers/input/touchscreen/tsc2007.c
b/drivers/input/touchscreen/tsc2007.c
index
536668f
..
edd4f64
100644
(file)
--- a/
drivers/input/touchscreen/tsc2007.c
+++ b/
drivers/input/touchscreen/tsc2007.c
@@
-256,7
+256,7
@@
static int tsc2007_probe(struct i2c_client *client,
struct input_dev *input_dev;
int err;
- if (!pdata) {
+ if (!pdata
|| !pdata->get_pendown_state
) {
dev_err(&client->dev, "platform data is required!\n");
return -EINVAL;
}