diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 04:07:45 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:26 -0400 |
commit | 4c89e88bfde6a3c179790e21004f24e09a058290 (patch) | |
tree | 2895a308d64aeabb5fde776d92572a51444d835b /drivers/bluetooth/bluecard_cs.c | |
parent | 1a53088c101789bfca431de709ff6e45e8c77003 (diff) |
pcmcia: deprecate CS_SUCCESS
Instead of using own error or success codes, the PCMCIA code should rely on
the generic return values. Therefore, replace all occurrences of CS_SUCCESS
with 0.
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/bluetooth/bluecard_cs.c')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index bcf57927b7a..e6ee21d99d9 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -901,23 +901,23 @@ static int bluecard_config(struct pcmcia_device *link) | |||
901 | for (n = 0; n < 0x400; n += 0x40) { | 901 | for (n = 0; n < 0x400; n += 0x40) { |
902 | link->io.BasePort1 = n ^ 0x300; | 902 | link->io.BasePort1 = n ^ 0x300; |
903 | i = pcmcia_request_io(link, &link->io); | 903 | i = pcmcia_request_io(link, &link->io); |
904 | if (i == CS_SUCCESS) | 904 | if (i == 0) |
905 | break; | 905 | break; |
906 | } | 906 | } |
907 | 907 | ||
908 | if (i != CS_SUCCESS) { | 908 | if (i != 0) { |
909 | cs_error(link, RequestIO, i); | 909 | cs_error(link, RequestIO, i); |
910 | goto failed; | 910 | goto failed; |
911 | } | 911 | } |
912 | 912 | ||
913 | i = pcmcia_request_irq(link, &link->irq); | 913 | i = pcmcia_request_irq(link, &link->irq); |
914 | if (i != CS_SUCCESS) { | 914 | if (i != 0) { |
915 | cs_error(link, RequestIRQ, i); | 915 | cs_error(link, RequestIRQ, i); |
916 | link->irq.AssignedIRQ = 0; | 916 | link->irq.AssignedIRQ = 0; |
917 | } | 917 | } |
918 | 918 | ||
919 | i = pcmcia_request_configuration(link, &link->conf); | 919 | i = pcmcia_request_configuration(link, &link->conf); |
920 | if (i != CS_SUCCESS) { | 920 | if (i != 0) { |
921 | cs_error(link, RequestConfiguration, i); | 921 | cs_error(link, RequestConfiguration, i); |
922 | goto failed; | 922 | goto failed; |
923 | } | 923 | } |