aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmte2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/palmte2.c')
-rw-r--r--arch/arm/mach-pxa/palmte2.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c
index d9ef76c9278f..277c4062e3c6 100644
--- a/arch/arm/mach-pxa/palmte2.c
+++ b/arch/arm/mach-pxa/palmte2.c
@@ -215,35 +215,9 @@ static struct platform_device palmte2_backlight = {
215/****************************************************************************** 215/******************************************************************************
216 * IrDA 216 * IrDA
217 ******************************************************************************/ 217 ******************************************************************************/
218static int palmte2_irda_startup(struct device *dev)
219{
220 int err;
221 err = gpio_request(GPIO_NR_PALMTE2_IR_DISABLE, "IR DISABLE");
222 if (err)
223 goto err;
224 err = gpio_direction_output(GPIO_NR_PALMTE2_IR_DISABLE, 1);
225 if (err)
226 gpio_free(GPIO_NR_PALMTE2_IR_DISABLE);
227err:
228 return err;
229}
230
231static void palmte2_irda_shutdown(struct device *dev)
232{
233 gpio_free(GPIO_NR_PALMTE2_IR_DISABLE);
234}
235
236static void palmte2_irda_transceiver_mode(struct device *dev, int mode)
237{
238 gpio_set_value(GPIO_NR_PALMTE2_IR_DISABLE, mode & IR_OFF);
239 pxa2xx_transceiver_mode(dev, mode);
240}
241
242static struct pxaficp_platform_data palmte2_ficp_platform_data = { 218static struct pxaficp_platform_data palmte2_ficp_platform_data = {
243 .startup = palmte2_irda_startup, 219 .gpio_pwdown = GPIO_NR_PALMTE2_IR_DISABLE,
244 .shutdown = palmte2_irda_shutdown, 220 .transceiver_cap = IR_SIRMODE | IR_OFF,
245 .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF,
246 .transceiver_mode = palmte2_irda_transceiver_mode,
247}; 221};
248 222
249/****************************************************************************** 223/******************************************************************************