aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-29 13:27:09 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:23 -0400
commit1ac71e5a35eebee60cdcf15b3980bd94498f037b (patch)
tree22fa9342ccccce6a774af029ce51a526e55f8180 /drivers/bluetooth
parent7feabb6412ea23edd298c0fa90e5aa6733eb4a42 (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/bluetooth')
-rw-r--r--drivers/bluetooth/bluecard_cs.c5
-rw-r--r--drivers/bluetooth/bt3c_cs.c5
-rw-r--r--drivers/bluetooth/btuart_cs.c5
-rw-r--r--drivers/bluetooth/dtl1_cs.c5
4 files changed, 8 insertions, 12 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c
index 08f4818ad9f7..c9dd5b789d25 100644
--- a/drivers/bluetooth/bluecard_cs.c
+++ b/drivers/bluetooth/bluecard_cs.c
@@ -39,7 +39,6 @@
39#include <linux/skbuff.h> 39#include <linux/skbuff.h>
40#include <linux/io.h> 40#include <linux/io.h>
41 41
42#include <pcmcia/cs.h>
43#include <pcmcia/cistpl.h> 42#include <pcmcia/cistpl.h>
44#include <pcmcia/ciscode.h> 43#include <pcmcia/ciscode.h>
45#include <pcmcia/ds.h> 44#include <pcmcia/ds.h>
@@ -865,7 +864,7 @@ static int bluecard_probe(struct pcmcia_device *link)
865 info->p_dev = link; 864 info->p_dev = link;
866 link->priv = info; 865 link->priv = info;
867 866
868 link->conf.Attributes = CONF_ENABLE_IRQ; 867 link->config_flags |= CONF_ENABLE_IRQ;
869 868
870 return bluecard_config(link); 869 return bluecard_config(link);
871} 870}
@@ -905,7 +904,7 @@ static int bluecard_config(struct pcmcia_device *link)
905 if (i != 0) 904 if (i != 0)
906 goto failed; 905 goto failed;
907 906
908 i = pcmcia_request_configuration(link, &link->conf); 907 i = pcmcia_enable_device(link);
909 if (i != 0) 908 if (i != 0)
910 goto failed; 909 goto failed;
911 910
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c
index fb018073a5f8..3db95887cfd7 100644
--- a/drivers/bluetooth/bt3c_cs.c
+++ b/drivers/bluetooth/bt3c_cs.c
@@ -45,7 +45,6 @@
45#include <linux/device.h> 45#include <linux/device.h>
46#include <linux/firmware.h> 46#include <linux/firmware.h>
47 47
48#include <pcmcia/cs.h>
49#include <pcmcia/cistpl.h> 48#include <pcmcia/cistpl.h>
50#include <pcmcia/ciscode.h> 49#include <pcmcia/ciscode.h>
51#include <pcmcia/ds.h> 50#include <pcmcia/ds.h>
@@ -660,7 +659,7 @@ static int bt3c_probe(struct pcmcia_device *link)
660 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 659 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
661 link->resource[0]->end = 8; 660 link->resource[0]->end = 8;
662 661
663 link->conf.Attributes = CONF_ENABLE_IRQ; 662 link->config_flags |= CONF_ENABLE_IRQ;
664 663
665 return bt3c_config(link); 664 return bt3c_config(link);
666} 665}
@@ -741,7 +740,7 @@ found_port:
741 if (i != 0) 740 if (i != 0)
742 goto failed; 741 goto failed;
743 742
744 i = pcmcia_request_configuration(link, &link->conf); 743 i = pcmcia_enable_device(link);
745 if (i != 0) 744 if (i != 0)
746 goto failed; 745 goto failed;
747 746
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c
index 897c7c74ca14..c5c43594ae0e 100644
--- a/drivers/bluetooth/btuart_cs.c
+++ b/drivers/bluetooth/btuart_cs.c
@@ -41,7 +41,6 @@
41#include <asm/system.h> 41#include <asm/system.h>
42#include <asm/io.h> 42#include <asm/io.h>
43 43
44#include <pcmcia/cs.h>
45#include <pcmcia/cistpl.h> 44#include <pcmcia/cistpl.h>
46#include <pcmcia/ciscode.h> 45#include <pcmcia/ciscode.h>
47#include <pcmcia/ds.h> 46#include <pcmcia/ds.h>
@@ -589,7 +588,7 @@ static int btuart_probe(struct pcmcia_device *link)
589 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 588 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
590 link->resource[0]->end = 8; 589 link->resource[0]->end = 8;
591 590
592 link->conf.Attributes = CONF_ENABLE_IRQ; 591 link->config_flags |= CONF_ENABLE_IRQ;
593 592
594 return btuart_config(link); 593 return btuart_config(link);
595} 594}
@@ -670,7 +669,7 @@ found_port:
670 if (i != 0) 669 if (i != 0)
671 goto failed; 670 goto failed;
672 671
673 i = pcmcia_request_configuration(link, &link->conf); 672 i = pcmcia_enable_device(link);
674 if (i != 0) 673 if (i != 0)
675 goto failed; 674 goto failed;
676 675
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c
index b4c9a2e0a96b..38206df7206b 100644
--- a/drivers/bluetooth/dtl1_cs.c
+++ b/drivers/bluetooth/dtl1_cs.c
@@ -41,7 +41,6 @@
41#include <asm/system.h> 41#include <asm/system.h>
42#include <asm/io.h> 42#include <asm/io.h>
43 43
44#include <pcmcia/cs.h>
45#include <pcmcia/cistpl.h> 44#include <pcmcia/cistpl.h>
46#include <pcmcia/ciscode.h> 45#include <pcmcia/ciscode.h>
47#include <pcmcia/ds.h> 46#include <pcmcia/ds.h>
@@ -575,7 +574,7 @@ static int dtl1_probe(struct pcmcia_device *link)
575 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 574 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
576 link->resource[0]->end = 8; 575 link->resource[0]->end = 8;
577 576
578 link->conf.Attributes = CONF_ENABLE_IRQ; 577 link->config_flags |= CONF_ENABLE_IRQ;
579 578
580 return dtl1_config(link); 579 return dtl1_config(link);
581} 580}
@@ -619,7 +618,7 @@ static int dtl1_config(struct pcmcia_device *link)
619 if (i != 0) 618 if (i != 0)
620 goto failed; 619 goto failed;
621 620
622 i = pcmcia_request_configuration(link, &link->conf); 621 i = pcmcia_enable_device(link);
623 if (i != 0) 622 if (i != 0)
624 goto failed; 623 goto failed;
625 624