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 = { | |||
218 | /****************************************************************************** | 218 | /****************************************************************************** |
219 | * IrDA | 219 | * IrDA |
220 | ******************************************************************************/ | 220 | ******************************************************************************/ |
221 | static int palmtc_irda_startup(struct device *dev) | ||
222 | { | ||
223 | int err; | ||
224 | err = gpio_request(GPIO_NR_PALMTC_IR_DISABLE, "IR DISABLE"); | ||
225 | if (err) | ||
226 | goto err; | ||
227 | err = gpio_direction_output(GPIO_NR_PALMTC_IR_DISABLE, 1); | ||
228 | if (err) | ||
229 | gpio_free(GPIO_NR_PALMTC_IR_DISABLE); | ||
230 | err: | ||
231 | return err; | ||
232 | } | ||
233 | |||
234 | static void palmtc_irda_shutdown(struct device *dev) | ||
235 | { | ||
236 | gpio_free(GPIO_NR_PALMTC_IR_DISABLE); | ||
237 | } | ||
238 | |||
239 | static void palmtc_irda_transceiver_mode(struct device *dev, int mode) | ||
240 | { | ||
241 | gpio_set_value(GPIO_NR_PALMTC_IR_DISABLE, mode & IR_OFF); | ||
242 | pxa2xx_transceiver_mode(dev, mode); | ||
243 | } | ||
244 | |||
245 | static struct pxaficp_platform_data palmtc_ficp_platform_data = { | 221 | static struct pxaficp_platform_data palmtc_ficp_platform_data = { |
246 | .startup = palmtc_irda_startup, | 222 | .gpio_pwdown = GPIO_NR_PALMTC_IR_DISABLE, |
247 | .shutdown = palmtc_irda_shutdown, | 223 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
248 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
249 | .transceiver_mode = palmtc_irda_transceiver_mode, | ||
250 | }; | 224 | }; |
251 | 225 | ||
252 | /****************************************************************************** | 226 | /****************************************************************************** |