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