diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-10-17 03:58:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-17 03:58:25 -0400 |
commit | bb3c3e807140816b5f5fd4840473ee52a916ad4f (patch) | |
tree | 9e8a69d266a7df86ca16177eefffab4b4e910753 /arch/arm/mach-pxa/eseries.c | |
parent | 595c36490deb49381dc51231a3d5e6b66786ed27 (diff) | |
parent | 012abeea669ea49636cf952d13298bb68654146a (diff) |
Merge commit 'v2.6.32-rc5' into perf/probes
Conflicts:
kernel/trace/trace_event_profile.c
Merge reason: update to -rc5 and resolve conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/mach-pxa/eseries.c')
-rw-r--r-- | arch/arm/mach-pxa/eseries.c | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index c60dadf847a6..91417f035069 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -47,44 +47,9 @@ struct pxa2xx_udc_mach_info e7xx_udc_mach_info = { | |||
47 | .gpio_pullup_inverted = 1 | 47 | .gpio_pullup_inverted = 1 |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static void e7xx_irda_transceiver_mode(struct device *dev, int mode) | ||
51 | { | ||
52 | if (mode & IR_OFF) { | ||
53 | gpio_set_value(GPIO_E7XX_IR_OFF, 1); | ||
54 | pxa2xx_transceiver_mode(dev, mode); | ||
55 | } else { | ||
56 | pxa2xx_transceiver_mode(dev, mode); | ||
57 | gpio_set_value(GPIO_E7XX_IR_OFF, 0); | ||
58 | } | ||
59 | } | ||
60 | |||
61 | int e7xx_irda_init(void) | ||
62 | { | ||
63 | int ret; | ||
64 | |||
65 | ret = gpio_request(GPIO_E7XX_IR_OFF, "IrDA power"); | ||
66 | if (ret) | ||
67 | goto out; | ||
68 | |||
69 | ret = gpio_direction_output(GPIO_E7XX_IR_OFF, 0); | ||
70 | if (ret) | ||
71 | goto out; | ||
72 | |||
73 | e7xx_irda_transceiver_mode(NULL, IR_SIRMODE | IR_OFF); | ||
74 | out: | ||
75 | return ret; | ||
76 | } | ||
77 | |||
78 | static void e7xx_irda_shutdown(struct device *dev) | ||
79 | { | ||
80 | e7xx_irda_transceiver_mode(dev, IR_SIRMODE | IR_OFF); | ||
81 | gpio_free(GPIO_E7XX_IR_OFF); | ||
82 | } | ||
83 | |||
84 | struct pxaficp_platform_data e7xx_ficp_platform_data = { | 50 | struct pxaficp_platform_data e7xx_ficp_platform_data = { |
85 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 51 | .gpio_pwdown = GPIO_E7XX_IR_OFF, |
86 | .transceiver_mode = e7xx_irda_transceiver_mode, | 52 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
87 | .shutdown = e7xx_irda_shutdown, | ||
88 | }; | 53 | }; |
89 | 54 | ||
90 | int eseries_tmio_enable(struct platform_device *dev) | 55 | int eseries_tmio_enable(struct platform_device *dev) |