diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-07-29 13:27:09 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:23 -0400 |
commit | 1ac71e5a35eebee60cdcf15b3980bd94498f037b (patch) | |
tree | 22fa9342ccccce6a774af029ce51a526e55f8180 /drivers/char/pcmcia/ipwireless/main.c | |
parent | 7feabb6412ea23edd298c0fa90e5aa6733eb4a42 (diff) |
pcmcia: convert pcmcia_request_configuration to pcmcia_enable_device
pcmcia_enable_device() now replaces pcmcia_request_configuration().
Instead of config_req_t, all necessary flags are either passed as
a parameter to pcmcia_enable_device(), or (in rare circumstances)
set in struct pcmcia_device -> flags.
With the last remaining user of include/pcmcia/cs.h gone, remove
all references.
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: linux-ide@vger.kernel.org
CC: linux-usb@vger.kernel.org
CC: laforge@gnumonks.org
CC: linux-mtd@lists.infradead.org
CC: alsa-devel@alsa-project.org
CC: linux-serial@vger.kernel.org
CC: Jiri Kosina <jkosina@suse.cz>
CC: linux-scsi@vger.kernel.org
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> (for drivers/bluetooth)
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/char/pcmcia/ipwireless/main.c')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/pcmcia/ipwireless/main.c b/drivers/char/pcmcia/ipwireless/main.c index 05c4e6834a6b..cd21b2bcdcd7 100644 --- a/drivers/char/pcmcia/ipwireless/main.c +++ b/drivers/char/pcmcia/ipwireless/main.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <pcmcia/device_id.h> | 32 | #include <pcmcia/device_id.h> |
33 | #include <pcmcia/ss.h> | 33 | #include <pcmcia/ss.h> |
34 | #include <pcmcia/ds.h> | 34 | #include <pcmcia/ds.h> |
35 | #include <pcmcia/cs.h> | ||
36 | 35 | ||
37 | static struct pcmcia_device_id ipw_ids[] = { | 36 | static struct pcmcia_device_id ipw_ids[] = { |
38 | PCMCIA_DEVICE_MANF_CARD(0x02f2, 0x0100), | 37 | PCMCIA_DEVICE_MANF_CARD(0x02f2, 0x0100), |
@@ -172,7 +171,7 @@ static int config_ipwireless(struct ipw_dev *ipw) | |||
172 | if (ret != 0) | 171 | if (ret != 0) |
173 | return ret; | 172 | return ret; |
174 | 173 | ||
175 | link->conf.Attributes = CONF_ENABLE_IRQ; | 174 | link->config_flags |= CONF_ENABLE_IRQ; |
176 | 175 | ||
177 | INIT_WORK(&ipw->work_reboot, signalled_reboot_work); | 176 | INIT_WORK(&ipw->work_reboot, signalled_reboot_work); |
178 | 177 | ||
@@ -210,8 +209,7 @@ static int config_ipwireless(struct ipw_dev *ipw) | |||
210 | * Do the RequestConfiguration last, because it enables interrupts. | 209 | * Do the RequestConfiguration last, because it enables interrupts. |
211 | * Then we don't get any interrupts before we're ready for them. | 210 | * Then we don't get any interrupts before we're ready for them. |
212 | */ | 211 | */ |
213 | ret = pcmcia_request_configuration(link, &link->conf); | 212 | ret = pcmcia_enable_device(link); |
214 | |||
215 | if (ret != 0) | 213 | if (ret != 0) |
216 | goto exit; | 214 | goto exit; |
217 | 215 | ||