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/net/wireless/atmel_cs.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/net/wireless/atmel_cs.c')
-rw-r--r-- | drivers/net/wireless/atmel_cs.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c index 8b75158caed7..080266eba985 100644 --- a/drivers/net/wireless/atmel_cs.c +++ b/drivers/net/wireless/atmel_cs.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <linux/moduleparam.h> | 42 | #include <linux/moduleparam.h> |
43 | #include <linux/device.h> | 43 | #include <linux/device.h> |
44 | 44 | ||
45 | #include <pcmcia/cs.h> | ||
46 | #include <pcmcia/cistpl.h> | 45 | #include <pcmcia/cistpl.h> |
47 | #include <pcmcia/cisreg.h> | 46 | #include <pcmcia/cisreg.h> |
48 | #include <pcmcia/ds.h> | 47 | #include <pcmcia/ds.h> |
@@ -106,15 +105,6 @@ static int atmel_probe(struct pcmcia_device *p_dev) | |||
106 | 105 | ||
107 | dev_dbg(&p_dev->dev, "atmel_attach()\n"); | 106 | dev_dbg(&p_dev->dev, "atmel_attach()\n"); |
108 | 107 | ||
109 | /* | ||
110 | General socket configuration defaults can go here. In this | ||
111 | client, we assume very little, and rely on the CIS for almost | ||
112 | everything. In most clients, many details (i.e., number, sizes, | ||
113 | and attributes of IO windows) are fixed by the nature of the | ||
114 | device, and can be hard-wired here. | ||
115 | */ | ||
116 | p_dev->conf.Attributes = 0; | ||
117 | |||
118 | /* Allocate space for private device-specific data */ | 108 | /* Allocate space for private device-specific data */ |
119 | local = kzalloc(sizeof(local_info_t), GFP_KERNEL); | 109 | local = kzalloc(sizeof(local_info_t), GFP_KERNEL); |
120 | if (!local) { | 110 | if (!local) { |
@@ -175,7 +165,7 @@ static int atmel_config_check(struct pcmcia_device *p_dev, | |||
175 | 165 | ||
176 | /* Does this card need audio output? */ | 166 | /* Does this card need audio output? */ |
177 | if (cfg->flags & CISTPL_CFTABLE_AUDIO) | 167 | if (cfg->flags & CISTPL_CFTABLE_AUDIO) |
178 | p_dev->conf.Attributes |= CONF_ENABLE_SPKR; | 168 | p_dev->config_flags |= CONF_ENABLE_SPKR; |
179 | 169 | ||
180 | /* Use power settings for Vcc and Vpp if present */ | 170 | /* Use power settings for Vcc and Vpp if present */ |
181 | /* Note that the CIS values need to be rescaled */ | 171 | /* Note that the CIS values need to be rescaled */ |
@@ -184,7 +174,7 @@ static int atmel_config_check(struct pcmcia_device *p_dev, | |||
184 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) | 174 | else if (dflt->vpp1.present & (1<<CISTPL_POWER_VNOM)) |
185 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; | 175 | p_dev->vpp = dflt->vpp1.param[CISTPL_POWER_VNOM]/10000; |
186 | 176 | ||
187 | p_dev->conf.Attributes |= CONF_ENABLE_IRQ; | 177 | p_dev->config_flags |= CONF_ENABLE_IRQ; |
188 | 178 | ||
189 | /* IO window settings */ | 179 | /* IO window settings */ |
190 | p_dev->resource[0]->end = p_dev->resource[1]->end = 0; | 180 | p_dev->resource[0]->end = p_dev->resource[1]->end = 0; |
@@ -242,7 +232,7 @@ static int atmel_config(struct pcmcia_device *link) | |||
242 | the I/O windows and the interrupt mapping, and putting the | 232 | the I/O windows and the interrupt mapping, and putting the |
243 | card and host interface into "Memory and IO" mode. | 233 | card and host interface into "Memory and IO" mode. |
244 | */ | 234 | */ |
245 | ret = pcmcia_request_configuration(link, &link->conf); | 235 | ret = pcmcia_enable_device(link); |
246 | if (ret) | 236 | if (ret) |
247 | goto failed; | 237 | goto failed; |
248 | 238 | ||