diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmz72.c')
-rw-r--r-- | arch/arm/mach-pxa/palmz72.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index d8fa53c19178..c2bf493c5f53 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -230,35 +230,9 @@ static struct platform_device palmz72_backlight = { | |||
230 | /****************************************************************************** | 230 | /****************************************************************************** |
231 | * IrDA | 231 | * IrDA |
232 | ******************************************************************************/ | 232 | ******************************************************************************/ |
233 | static int palmz72_irda_startup(struct device *dev) | ||
234 | { | ||
235 | int err; | ||
236 | err = gpio_request(GPIO_NR_PALMZ72_IR_DISABLE, "IR DISABLE"); | ||
237 | if (err) | ||
238 | goto err; | ||
239 | err = gpio_direction_output(GPIO_NR_PALMZ72_IR_DISABLE, 1); | ||
240 | if (err) | ||
241 | gpio_free(GPIO_NR_PALMZ72_IR_DISABLE); | ||
242 | err: | ||
243 | return err; | ||
244 | } | ||
245 | |||
246 | static void palmz72_irda_shutdown(struct device *dev) | ||
247 | { | ||
248 | gpio_free(GPIO_NR_PALMZ72_IR_DISABLE); | ||
249 | } | ||
250 | |||
251 | static void palmz72_irda_transceiver_mode(struct device *dev, int mode) | ||
252 | { | ||
253 | gpio_set_value(GPIO_NR_PALMZ72_IR_DISABLE, mode & IR_OFF); | ||
254 | pxa2xx_transceiver_mode(dev, mode); | ||
255 | } | ||
256 | |||
257 | static struct pxaficp_platform_data palmz72_ficp_platform_data = { | 233 | static struct pxaficp_platform_data palmz72_ficp_platform_data = { |
258 | .startup = palmz72_irda_startup, | 234 | .gpio_pwdown = GPIO_NR_PALMZ72_IR_DISABLE, |
259 | .shutdown = palmz72_irda_shutdown, | ||
260 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 235 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
261 | .transceiver_mode = palmz72_irda_transceiver_mode, | ||
262 | }; | 236 | }; |
263 | 237 | ||
264 | /****************************************************************************** | 238 | /****************************************************************************** |