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/mtd/maps/pcmciamtd.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/mtd/maps/pcmciamtd.c')
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index 99c7257363d6..388db9ecf222 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/system.h> | 17 | #include <asm/system.h> |
18 | 18 | ||
19 | #include <pcmcia/cs.h> | ||
20 | #include <pcmcia/cistpl.h> | 19 | #include <pcmcia/cistpl.h> |
21 | #include <pcmcia/ds.h> | 20 | #include <pcmcia/ds.h> |
22 | 21 | ||
@@ -568,7 +567,6 @@ static int pcmciamtd_config(struct pcmcia_device *link) | |||
568 | dev->pcmcia_map.map_priv_2 = (unsigned long)link->resource[2]; | 567 | dev->pcmcia_map.map_priv_2 = (unsigned long)link->resource[2]; |
569 | 568 | ||
570 | dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp; | 569 | dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp; |
571 | link->conf.Attributes = 0; | ||
572 | if(setvpp == 2) { | 570 | if(setvpp == 2) { |
573 | link->vpp = dev->vpp; | 571 | link->vpp = dev->vpp; |
574 | } else { | 572 | } else { |
@@ -577,7 +575,7 @@ static int pcmciamtd_config(struct pcmcia_device *link) | |||
577 | 575 | ||
578 | link->config_index = 0; | 576 | link->config_index = 0; |
579 | DEBUG(2, "Setting Configuration"); | 577 | DEBUG(2, "Setting Configuration"); |
580 | ret = pcmcia_request_configuration(link, &link->conf); | 578 | ret = pcmcia_enable_device(link); |
581 | if (ret != 0) { | 579 | if (ret != 0) { |
582 | if (dev->win_base) { | 580 | if (dev->win_base) { |
583 | iounmap(dev->win_base); | 581 | iounmap(dev->win_base); |
@@ -718,8 +716,6 @@ static int pcmciamtd_probe(struct pcmcia_device *link) | |||
718 | dev->p_dev = link; | 716 | dev->p_dev = link; |
719 | link->priv = dev; | 717 | link->priv = dev; |
720 | 718 | ||
721 | link->conf.Attributes = 0; | ||
722 | |||
723 | return pcmciamtd_config(link); | 719 | return pcmciamtd_config(link); |
724 | } | 720 | } |
725 | 721 | ||