#include <linux/spi/tsc2301.h>
#ifdef CONFIG_ARCH_OMAP
-#include <asm/arch/gpio.h>
+#include <mach/gpio.h>
#endif
u16 tsc2301_read_reg(struct tsc2301 *tsc, int reg)
dev_set_drvdata(&spi->dev, tsc);
tsc->spi = spi;
- spi->dev.power.power_state = PMSG_ON;
tsc->enable_clock = pdata->enable_clock;
tsc->disable_clock = pdata->disable_clock;
} else
tsc->reset_gpio = -1;
- spi->mode = SPI_MODE_0;
+ spi->mode = SPI_MODE_1;
spi->bits_per_word = 16;
/* The max speed might've been defined by the board-specific
* struct */