diff options
Diffstat (limited to 'arch/arm/mach-sa1100')
-rw-r--r-- | arch/arm/mach-sa1100/h3600.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/include/mach/h3600.h | 13 |
2 files changed, 1 insertions, 18 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c index 9f13f5bd57a2..1fa0f58c07b0 100644 --- a/arch/arm/mach-sa1100/h3600.c +++ b/arch/arm/mach-sa1100/h3600.c | |||
@@ -92,11 +92,7 @@ static int h3600_irda_set_power(struct device *dev, unsigned int state) | |||
92 | 92 | ||
93 | static void h3600_irda_set_speed(struct device *dev, unsigned int speed) | 93 | static void h3600_irda_set_speed(struct device *dev, unsigned int speed) |
94 | { | 94 | { |
95 | if (speed < 4000000) { | 95 | assign_h3600_egpio(IPAQ_EGPIO_IR_FSEL, !(speed < 4000000)); |
96 | clr_h3600_egpio(IPAQ_EGPIO_IR_FSEL); | ||
97 | } else { | ||
98 | set_h3600_egpio(IPAQ_EGPIO_IR_FSEL); | ||
99 | } | ||
100 | } | 96 | } |
101 | 97 | ||
102 | static struct irda_platform_data h3600_irda_data = { | 98 | static struct irda_platform_data h3600_irda_data = { |
diff --git a/arch/arm/mach-sa1100/include/mach/h3600.h b/arch/arm/mach-sa1100/include/mach/h3600.h index 8e8ccfc2f463..33fc4bcfd3ee 100644 --- a/arch/arm/mach-sa1100/include/mach/h3600.h +++ b/arch/arm/mach-sa1100/include/mach/h3600.h | |||
@@ -105,19 +105,6 @@ static __inline__ void assign_h3600_egpio(enum ipaq_egpio_type x, int level) | |||
105 | ipaq_model_ops.control(x,level); | 105 | ipaq_model_ops.control(x,level); |
106 | } | 106 | } |
107 | 107 | ||
108 | static __inline__ void clr_h3600_egpio(enum ipaq_egpio_type x) | ||
109 | { | ||
110 | if (ipaq_model_ops.control) | ||
111 | ipaq_model_ops.control(x,0); | ||
112 | } | ||
113 | |||
114 | static __inline__ void set_h3600_egpio(enum ipaq_egpio_type x) | ||
115 | { | ||
116 | if (ipaq_model_ops.control) | ||
117 | ipaq_model_ops.control(x,1); | ||
118 | } | ||
119 | |||
120 | |||
121 | #endif /* ASSEMBLY */ | 108 | #endif /* ASSEMBLY */ |
122 | 109 | ||
123 | #endif /* _INCLUDE_H3600_H_ */ | 110 | #endif /* _INCLUDE_H3600_H_ */ |