diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/bluetooth/bluecard_cs.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index d52e90a5a617..aed1904ea67b 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,8 +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 | link->conf.IntType = INT_MEMORY_AND_IO; | ||
870 | 868 | ||
871 | return bluecard_config(link); | 869 | return bluecard_config(link); |
872 | } | 870 | } |
@@ -886,7 +884,7 @@ static int bluecard_config(struct pcmcia_device *link) | |||
886 | bluecard_info_t *info = link->priv; | 884 | bluecard_info_t *info = link->priv; |
887 | int i, n; | 885 | int i, n; |
888 | 886 | ||
889 | link->conf.ConfigIndex = 0x20; | 887 | link->config_index = 0x20; |
890 | 888 | ||
891 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; | 889 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; |
892 | link->resource[0]->end = 64; | 890 | link->resource[0]->end = 64; |
@@ -906,7 +904,7 @@ static int bluecard_config(struct pcmcia_device *link) | |||
906 | if (i != 0) | 904 | if (i != 0) |
907 | goto failed; | 905 | goto failed; |
908 | 906 | ||
909 | i = pcmcia_request_configuration(link, &link->conf); | 907 | i = pcmcia_enable_device(link); |
910 | if (i != 0) | 908 | if (i != 0) |
911 | goto failed; | 909 | goto failed; |
912 | 910 | ||
@@ -932,7 +930,7 @@ static void bluecard_release(struct pcmcia_device *link) | |||
932 | pcmcia_disable_device(link); | 930 | pcmcia_disable_device(link); |
933 | } | 931 | } |
934 | 932 | ||
935 | static struct pcmcia_device_id bluecard_ids[] = { | 933 | static const struct pcmcia_device_id bluecard_ids[] = { |
936 | PCMCIA_DEVICE_PROD_ID12("BlueCard", "LSE041", 0xbaf16fbf, 0x657cc15e), | 934 | PCMCIA_DEVICE_PROD_ID12("BlueCard", "LSE041", 0xbaf16fbf, 0x657cc15e), |
937 | PCMCIA_DEVICE_PROD_ID12("BTCFCARD", "LSE139", 0xe3987764, 0x2524b59c), | 935 | PCMCIA_DEVICE_PROD_ID12("BTCFCARD", "LSE139", 0xe3987764, 0x2524b59c), |
938 | PCMCIA_DEVICE_PROD_ID12("WSS", "LSE039", 0x0a0736ec, 0x24e6dfab), | 936 | PCMCIA_DEVICE_PROD_ID12("WSS", "LSE039", 0x0a0736ec, 0x24e6dfab), |
@@ -942,9 +940,7 @@ MODULE_DEVICE_TABLE(pcmcia, bluecard_ids); | |||
942 | 940 | ||
943 | static struct pcmcia_driver bluecard_driver = { | 941 | static struct pcmcia_driver bluecard_driver = { |
944 | .owner = THIS_MODULE, | 942 | .owner = THIS_MODULE, |
945 | .drv = { | 943 | .name = "bluecard_cs", |
946 | .name = "bluecard_cs", | ||
947 | }, | ||
948 | .probe = bluecard_probe, | 944 | .probe = bluecard_probe, |
949 | .remove = bluecard_detach, | 945 | .remove = bluecard_detach, |
950 | .id_table = bluecard_ids, | 946 | .id_table = bluecard_ids, |