diff options
| -rw-r--r-- | drivers/input/touchscreen/ad7877.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 0d2d7e54b465..5f0221cffef9 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
| @@ -679,6 +679,13 @@ static int __devinit ad7877_probe(struct spi_device *spi) | |||
| 679 | return -EINVAL; | 679 | return -EINVAL; |
| 680 | } | 680 | } |
| 681 | 681 | ||
| 682 | spi->bits_per_word = 16; | ||
| 683 | err = spi_setup(spi); | ||
| 684 | if (err) { | ||
| 685 | dev_dbg(&spi->dev, "spi master doesn't support 16 bits/word\n"); | ||
| 686 | return err; | ||
| 687 | } | ||
| 688 | |||
| 682 | ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL); | 689 | ts = kzalloc(sizeof(struct ad7877), GFP_KERNEL); |
| 683 | input_dev = input_allocate_device(); | 690 | input_dev = input_allocate_device(); |
| 684 | if (!ts || !input_dev) { | 691 | if (!ts || !input_dev) { |
