diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-02-19 10:22:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-20 20:11:49 -0500 |
commit | 53521d8c90d366191b6c134f88a8ebe83de60614 (patch) | |
tree | 2d4b8bed0db743927586389ab035aab816d22f36 /drivers/ssb/driver_extif.c | |
parent | c2bcbe65fc88d61f9a806367ff6eab76c9eabb3a (diff) |
ssb: Make the GPIO API reentrancy safe
This fixes the GPIO API to be reentrancy safe.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ssb/driver_extif.c')
-rw-r--r-- | drivers/ssb/driver_extif.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/ssb/driver_extif.c b/drivers/ssb/driver_extif.c index 10c6b287f8b..c3e1d3e6d61 100644 --- a/drivers/ssb/driver_extif.c +++ b/drivers/ssb/driver_extif.c | |||
@@ -122,30 +122,25 @@ u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask) | |||
122 | { | 122 | { |
123 | return extif_read32(extif, SSB_EXTIF_GPIO_IN) & mask; | 123 | return extif_read32(extif, SSB_EXTIF_GPIO_IN) & mask; |
124 | } | 124 | } |
125 | EXPORT_SYMBOL(ssb_extif_gpio_in); | ||
126 | 125 | ||
127 | u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value) | 126 | u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value) |
128 | { | 127 | { |
129 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_OUT(0), | 128 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_OUT(0), |
130 | mask, value); | 129 | mask, value); |
131 | } | 130 | } |
132 | EXPORT_SYMBOL(ssb_extif_gpio_out); | ||
133 | 131 | ||
134 | u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value) | 132 | u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value) |
135 | { | 133 | { |
136 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_OUTEN(0), | 134 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_OUTEN(0), |
137 | mask, value); | 135 | mask, value); |
138 | } | 136 | } |
139 | EXPORT_SYMBOL(ssb_extif_gpio_outen); | ||
140 | 137 | ||
141 | u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value) | 138 | u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value) |
142 | { | 139 | { |
143 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_INTPOL, mask, value); | 140 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_INTPOL, mask, value); |
144 | } | 141 | } |
145 | EXPORT_SYMBOL(ssb_extif_gpio_polarity); | ||
146 | 142 | ||
147 | u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value) | 143 | u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value) |
148 | { | 144 | { |
149 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_INTMASK, mask, value); | 145 | return extif_write32_masked(extif, SSB_EXTIF_GPIO_INTMASK, mask, value); |
150 | } | 146 | } |
151 | EXPORT_SYMBOL(ssb_extif_gpio_intmask); | ||