diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-24 13:03:02 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-03 03:04:16 -0400 |
commit | 0ca724d37af370dbf2d55dc4d6359ead558e5756 (patch) | |
tree | 994685118202d9bf54f11ec9b39a654f6fb4f21f /drivers/char/pcmcia | |
parent | b5cb259e7fac5536c4ddf350af6a3d6cc950e47e (diff) |
pcmcia: use struct resource for PCMCIA devices, part 2
Use struct resource * also for iomem resources.
CC: linux-mtd@lists.infradead.org
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/main.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/char/pcmcia/ipwireless/main.c b/drivers/char/pcmcia/ipwireless/main.c index 6c4aa4b0be99..67bdb05798b1 100644 --- a/drivers/char/pcmcia/ipwireless/main.c +++ b/drivers/char/pcmcia/ipwireless/main.c | |||
@@ -157,15 +157,12 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, | |||
157 | return 0; | 157 | return 0; |
158 | 158 | ||
159 | exit3: | 159 | exit3: |
160 | pcmcia_release_window(p_dev, ipw->handle_attr_memory); | ||
161 | exit2: | 160 | exit2: |
162 | if (ipw->common_memory) { | 161 | if (ipw->common_memory) { |
163 | release_mem_region(ipw->request_common_memory.Base, | 162 | release_mem_region(ipw->request_common_memory.Base, |
164 | ipw->request_common_memory.Size); | 163 | ipw->request_common_memory.Size); |
165 | iounmap(ipw->common_memory); | 164 | iounmap(ipw->common_memory); |
166 | pcmcia_release_window(p_dev, ipw->handle_common_memory); | 165 | } |
167 | } else | ||
168 | pcmcia_release_window(p_dev, ipw->handle_common_memory); | ||
169 | exit1: | 166 | exit1: |
170 | release_resource(io_resource); | 167 | release_resource(io_resource); |
171 | pcmcia_disable_device(p_dev); | 168 | pcmcia_disable_device(p_dev); |
@@ -238,13 +235,12 @@ exit: | |||
238 | release_mem_region(ipw->request_attr_memory.Base, | 235 | release_mem_region(ipw->request_attr_memory.Base, |
239 | ipw->request_attr_memory.Size); | 236 | ipw->request_attr_memory.Size); |
240 | iounmap(ipw->attr_memory); | 237 | iounmap(ipw->attr_memory); |
241 | pcmcia_release_window(link, ipw->handle_attr_memory); | 238 | |
242 | } | 239 | } |
243 | if (ipw->common_memory) { | 240 | if (ipw->common_memory) { |
244 | release_mem_region(ipw->request_common_memory.Base, | 241 | release_mem_region(ipw->request_common_memory.Base, |
245 | ipw->request_common_memory.Size); | 242 | ipw->request_common_memory.Size); |
246 | iounmap(ipw->common_memory); | 243 | iounmap(ipw->common_memory); |
247 | pcmcia_release_window(link, ipw->handle_common_memory); | ||
248 | } | 244 | } |
249 | pcmcia_disable_device(link); | 245 | pcmcia_disable_device(link); |
250 | return -1; | 246 | return -1; |
@@ -262,11 +258,6 @@ static void release_ipwireless(struct ipw_dev *ipw) | |||
262 | ipw->request_attr_memory.Size); | 258 | ipw->request_attr_memory.Size); |
263 | iounmap(ipw->attr_memory); | 259 | iounmap(ipw->attr_memory); |
264 | } | 260 | } |
265 | if (ipw->common_memory) | ||
266 | pcmcia_release_window(ipw->link, ipw->handle_common_memory); | ||
267 | if (ipw->attr_memory) | ||
268 | pcmcia_release_window(ipw->link, ipw->handle_attr_memory); | ||
269 | |||
270 | pcmcia_disable_device(ipw->link); | 261 | pcmcia_disable_device(ipw->link); |
271 | } | 262 | } |
272 | 263 | ||