diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmtc.c')
-rw-r--r-- | arch/arm/mach-pxa/palmtc.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c index f70f1f820eed..bb2cc0dd44ec 100644 --- a/arch/arm/mach-pxa/palmtc.c +++ b/arch/arm/mach-pxa/palmtc.c @@ -218,35 +218,9 @@ static struct platform_device palmtc_backlight = { /****************************************************************************** * IrDA ******************************************************************************/ -static int palmtc_irda_startup(struct device *dev) -{ - int err; - err = gpio_request(GPIO_NR_PALMTC_IR_DISABLE, "IR DISABLE"); - if (err) - goto err; - err = gpio_direction_output(GPIO_NR_PALMTC_IR_DISABLE, 1); - if (err) - gpio_free(GPIO_NR_PALMTC_IR_DISABLE); -err: - return err; -} - -static void palmtc_irda_shutdown(struct device *dev) -{ - gpio_free(GPIO_NR_PALMTC_IR_DISABLE); -} - -static void palmtc_irda_transceiver_mode(struct device *dev, int mode) -{ - gpio_set_value(GPIO_NR_PALMTC_IR_DISABLE, mode & IR_OFF); - pxa2xx_transceiver_mode(dev, mode); -} - static struct pxaficp_platform_data palmtc_ficp_platform_data = { - .startup = palmtc_irda_startup, - .shutdown = palmtc_irda_shutdown, - .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, - .transceiver_mode = palmtc_irda_transceiver_mode, + .gpio_pwdown = GPIO_NR_PALMTC_IR_DISABLE, + .transceiver_cap = IR_SIRMODE | IR_OFF, }; /****************************************************************************** |