diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmt5.c')
-rw-r--r-- | arch/arm/mach-pxa/palmt5.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 88dcaac358a2..2dd7ce28556b 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -243,35 +243,9 @@ static struct platform_device palmt5_backlight = { | |||
243 | /****************************************************************************** | 243 | /****************************************************************************** |
244 | * IrDA | 244 | * IrDA |
245 | ******************************************************************************/ | 245 | ******************************************************************************/ |
246 | static int palmt5_irda_startup(struct device *dev) | ||
247 | { | ||
248 | int err; | ||
249 | err = gpio_request(GPIO_NR_PALMT5_IR_DISABLE, "IR DISABLE"); | ||
250 | if (err) | ||
251 | goto err; | ||
252 | err = gpio_direction_output(GPIO_NR_PALMT5_IR_DISABLE, 1); | ||
253 | if (err) | ||
254 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
255 | err: | ||
256 | return err; | ||
257 | } | ||
258 | |||
259 | static void palmt5_irda_shutdown(struct device *dev) | ||
260 | { | ||
261 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
262 | } | ||
263 | |||
264 | static void palmt5_irda_transceiver_mode(struct device *dev, int mode) | ||
265 | { | ||
266 | gpio_set_value(GPIO_NR_PALMT5_IR_DISABLE, mode & IR_OFF); | ||
267 | pxa2xx_transceiver_mode(dev, mode); | ||
268 | } | ||
269 | |||
270 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { | 246 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { |
271 | .startup = palmt5_irda_startup, | 247 | .gpio_pwdown = GPIO_NR_PALMT5_IR_DISABLE, |
272 | .shutdown = palmt5_irda_shutdown, | 248 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
273 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
274 | .transceiver_mode = palmt5_irda_transceiver_mode, | ||
275 | }; | 249 | }; |
276 | 250 | ||
277 | /****************************************************************************** | 251 | /****************************************************************************** |