diff options
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index e557f2359ccc..50174fb107a8 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -85,7 +85,7 @@ typedef struct bluecard_info_t { | |||
85 | } bluecard_info_t; | 85 | } bluecard_info_t; |
86 | 86 | ||
87 | 87 | ||
88 | static void bluecard_config(struct pcmcia_device *link); | 88 | static int bluecard_config(struct pcmcia_device *link); |
89 | static void bluecard_release(struct pcmcia_device *link); | 89 | static void bluecard_release(struct pcmcia_device *link); |
90 | 90 | ||
91 | static void bluecard_detach(struct pcmcia_device *p_dev); | 91 | static void bluecard_detach(struct pcmcia_device *p_dev); |
@@ -856,7 +856,7 @@ static int bluecard_close(bluecard_info_t *info) | |||
856 | return 0; | 856 | return 0; |
857 | } | 857 | } |
858 | 858 | ||
859 | static int bluecard_attach(struct pcmcia_device *link) | 859 | static int bluecard_probe(struct pcmcia_device *link) |
860 | { | 860 | { |
861 | bluecard_info_t *info; | 861 | bluecard_info_t *info; |
862 | 862 | ||
@@ -880,9 +880,7 @@ static int bluecard_attach(struct pcmcia_device *link) | |||
880 | link->conf.IntType = INT_MEMORY_AND_IO; | 880 | link->conf.IntType = INT_MEMORY_AND_IO; |
881 | 881 | ||
882 | link->state |= DEV_PRESENT | DEV_CONFIG_PENDING; | 882 | link->state |= DEV_PRESENT | DEV_CONFIG_PENDING; |
883 | bluecard_config(link); | 883 | return bluecard_config(link); |
884 | |||
885 | return 0; | ||
886 | } | 884 | } |
887 | 885 | ||
888 | 886 | ||
@@ -912,7 +910,7 @@ static int first_tuple(struct pcmcia_device *handle, tuple_t *tuple, cisparse_t | |||
912 | return pcmcia_parse_tuple(handle, tuple, parse); | 910 | return pcmcia_parse_tuple(handle, tuple, parse); |
913 | } | 911 | } |
914 | 912 | ||
915 | static void bluecard_config(struct pcmcia_device *link) | 913 | static int bluecard_config(struct pcmcia_device *link) |
916 | { | 914 | { |
917 | bluecard_info_t *info = link->priv; | 915 | bluecard_info_t *info = link->priv; |
918 | tuple_t tuple; | 916 | tuple_t tuple; |
@@ -973,13 +971,14 @@ static void bluecard_config(struct pcmcia_device *link) | |||
973 | link->dev_node = &info->node; | 971 | link->dev_node = &info->node; |
974 | link->state &= ~DEV_CONFIG_PENDING; | 972 | link->state &= ~DEV_CONFIG_PENDING; |
975 | 973 | ||
976 | return; | 974 | return 0; |
977 | 975 | ||
978 | cs_failed: | 976 | cs_failed: |
979 | cs_error(link, last_fn, last_ret); | 977 | cs_error(link, last_fn, last_ret); |
980 | 978 | ||
981 | failed: | 979 | failed: |
982 | bluecard_release(link); | 980 | bluecard_release(link); |
981 | return -ENODEV; | ||
983 | } | 982 | } |
984 | 983 | ||
985 | 984 | ||
@@ -1008,7 +1007,7 @@ static struct pcmcia_driver bluecard_driver = { | |||
1008 | .drv = { | 1007 | .drv = { |
1009 | .name = "bluecard_cs", | 1008 | .name = "bluecard_cs", |
1010 | }, | 1009 | }, |
1011 | .probe = bluecard_attach, | 1010 | .probe = bluecard_probe, |
1012 | .remove = bluecard_detach, | 1011 | .remove = bluecard_detach, |
1013 | .id_table = bluecard_ids, | 1012 | .id_table = bluecard_ids, |
1014 | }; | 1013 | }; |