@@ -759,6 +759,8 @@
tsdev->irq = myirq;
mrstouchdevp = tsdev;
+ tsdev->spi = mrstouch_spi;
+
err = mrstouch_adc_init(tsdev);
if (err) {
dev_err(&mrstouch_spi->dev, "ADC init failed\n");
@@ -766,7 +768,6 @@
}
dev_set_drvdata(&mrstouch_spi->dev, tsdev);
- tsdev->spi = mrstouch_spi;
err = ts_input_dev_init(tsdev, mrstouch_spi);
if (err) {
--------------030606040305060606070104--
---
drivers/staging/mrst-touchscreen/intel-mid-touch.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
@@ -651,6 +651,8 @@ static int __devinit mrstouch_probe(struct spi_device *spi)
snprintf(tsdev->phys, sizeof(tsdev->phys),
"%s/input0", dev_name(&spi->dev));
+ tsdev->spi = mrstouch_spi;
+
err = mrstouch_adc_init(tsdev);
if (err) {
dev_err(&spi->dev, "ADC initialization failed\n");