diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r-- | arch/arm/mach-pxa/palmtx.c | 30 |
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 | ******************************************************************************/ |
306 | static 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); | ||
315 | err: | ||
316 | return err; | ||
317 | } | ||
318 | |||
319 | static void palmtx_irda_shutdown(struct device *dev) | ||
320 | { | ||
321 | gpio_free(GPIO_NR_PALMTX_IR_DISABLE); | ||
322 | } | ||
323 | |||
324 | static 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 | |||
330 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { | 306 | static 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 | /****************************************************************************** |