#include <linux/spi/spi.h>
#ifdef CONFIG_ARCH_OMAP
-#include <asm/arch/gpio.h>
+#include <mach/gpio.h>
#endif
#include <linux/spi/tsc2005.h>
static int __devexit tsc2005_remove(struct spi_device *spi)
{
struct tsc2005 *ts = dev_get_drvdata(&spi->dev);
- unsigned long flags;
- spin_lock_irqsave(&ts->lock, flags);
+ mutex_lock(&ts->mutex);
tsc2005_disable(ts);
- spin_unlock_irqrestore(&ts->lock, flags);
+ mutex_unlock(&ts->mutex);
device_remove_file(&ts->spi->dev, &dev_attr_disable_ts);
device_remove_file(&ts->spi->dev, &dev_attr_pen_down);
MODULE_AUTHOR("Lauri Leukkunen <lauri.leukkunen@nokia.com>");
MODULE_LICENSE("GPL");
-
+MODULE_ALIAS("platform:tsc2005");