aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r--arch/arm/mach-pxa/palmtx.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c
index c0aca18b71bb..76a2b37eaf30 100644
--- a/arch/arm/mach-pxa/palmtx.c
+++ b/arch/arm/mach-pxa/palmtx.c
@@ -303,35 +303,9 @@ static struct platform_device palmtx_backlight = {
303/****************************************************************************** 303/******************************************************************************
304 * IrDA 304 * IrDA
305 ******************************************************************************/ 305 ******************************************************************************/
306static int palmtx_irda_startup(struct device *dev)
307{
308 int err;
309 err = gpio_request(GPIO_NR_PALMTX_IR_DISABLE, "IR DISABLE");
310 if (err)
311 goto err;
312 err = gpio_direction_output(GPIO_NR_PALMTX_IR_DISABLE, 1);
313 if (err)
314 gpio_free(GPIO_NR_PALMTX_IR_DISABLE);
315err:
316 return err;
317}
318
319static void palmtx_irda_shutdown(struct device *dev)
320{
321 gpio_free(GPIO_NR_PALMTX_IR_DISABLE);
322}
323
324static void palmtx_irda_transceiver_mode(struct device *dev, int mode)
325{
326 gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, mode & IR_OFF);
327 pxa2xx_transceiver_mode(dev, mode);
328}
329
330static struct pxaficp_platform_data palmtx_ficp_platform_data = { 306static struct pxaficp_platform_data palmtx_ficp_platform_data = {
331 .startup = palmtx_irda_startup, 307 .gpio_pwdown = GPIO_NR_PALMTX_IR_DISABLE,
332 .shutdown = palmtx_irda_shutdown, 308 .transceiver_cap = IR_SIRMODE | IR_OFF,
333 .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF,
334 .transceiver_mode = palmtx_irda_transceiver_mode,
335}; 309};
336 310
337/****************************************************************************** 311/******************************************************************************