diff options
Diffstat (limited to 'drivers/input/touchscreen/usbtouchscreen.c')
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index fdd645c214a2..5080b26ba160 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
@@ -424,7 +424,7 @@ static int dmc_tsc10_init(struct usbtouch_usb *usbtouch) | |||
424 | 0, 0, buf, 2, USB_CTRL_SET_TIMEOUT); | 424 | 0, 0, buf, 2, USB_CTRL_SET_TIMEOUT); |
425 | if (ret < 0) | 425 | if (ret < 0) |
426 | goto err_out; | 426 | goto err_out; |
427 | if (buf[0] != 0x06 || buf[1] != 0x00) { | 427 | if (buf[0] != 0x06) { |
428 | ret = -ENODEV; | 428 | ret = -ENODEV; |
429 | goto err_out; | 429 | goto err_out; |
430 | } | 430 | } |
@@ -437,8 +437,7 @@ static int dmc_tsc10_init(struct usbtouch_usb *usbtouch) | |||
437 | TSC10_RATE_150, 0, buf, 2, USB_CTRL_SET_TIMEOUT); | 437 | TSC10_RATE_150, 0, buf, 2, USB_CTRL_SET_TIMEOUT); |
438 | if (ret < 0) | 438 | if (ret < 0) |
439 | goto err_out; | 439 | goto err_out; |
440 | if ((buf[0] != 0x06 || buf[1] != 0x00) && | 440 | if ((buf[0] != 0x06) && (buf[0] != 0x15 || buf[1] != 0x01)) { |
441 | (buf[0] != 0x15 || buf[1] != 0x01)) { | ||
442 | ret = -ENODEV; | 441 | ret = -ENODEV; |
443 | goto err_out; | 442 | goto err_out; |
444 | } | 443 | } |