#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)
r = omap_request_gpio(tsc->reset_gpio);
if (r < 0)
goto err1;
- omap_set_gpio_dataout(tsc->reset_gpio, 1);
- omap_set_gpio_direction(tsc->reset_gpio, 0);
+ gpio_direction_output(tsc->reset_gpio, 1);
mdelay(1);
- omap_set_gpio_dataout(tsc->reset_gpio, 0);
+ gpio_set_value(tsc->reset_gpio, 0);
#endif
} else
tsc->reset_gpio = -1;