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 | |
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')
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 8 | ||||
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index bcf57927b7a8..e6ee21d99d92 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 | } |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 3fd8022a6351..156edfd7e10d 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -743,13 +743,13 @@ static int bt3c_config(struct pcmcia_device *link) | |||
743 | 743 | ||
744 | found_port: | 744 | found_port: |
745 | i = pcmcia_request_irq(link, &link->irq); | 745 | i = pcmcia_request_irq(link, &link->irq); |
746 | if (i != CS_SUCCESS) { | 746 | if (i != 0) { |
747 | cs_error(link, RequestIRQ, i); | 747 | cs_error(link, RequestIRQ, i); |
748 | link->irq.AssignedIRQ = 0; | 748 | link->irq.AssignedIRQ = 0; |
749 | } | 749 | } |
750 | 750 | ||
751 | i = pcmcia_request_configuration(link, &link->conf); | 751 | i = pcmcia_request_configuration(link, &link->conf); |
752 | if (i != CS_SUCCESS) { | 752 | if (i != 0) { |
753 | cs_error(link, RequestConfiguration, i); | 753 | cs_error(link, RequestConfiguration, i); |
754 | goto failed; | 754 | goto failed; |
755 | } | 755 | } |
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 17183125434f..8e556b7ff9f6 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -672,13 +672,13 @@ static int btuart_config(struct pcmcia_device *link) | |||
672 | 672 | ||
673 | found_port: | 673 | found_port: |
674 | i = pcmcia_request_irq(link, &link->irq); | 674 | i = pcmcia_request_irq(link, &link->irq); |
675 | if (i != CS_SUCCESS) { | 675 | if (i != 0) { |
676 | cs_error(link, RequestIRQ, i); | 676 | cs_error(link, RequestIRQ, i); |
677 | link->irq.AssignedIRQ = 0; | 677 | link->irq.AssignedIRQ = 0; |
678 | } | 678 | } |
679 | 679 | ||
680 | i = pcmcia_request_configuration(link, &link->conf); | 680 | i = pcmcia_request_configuration(link, &link->conf); |
681 | if (i != CS_SUCCESS) { | 681 | if (i != 0) { |
682 | cs_error(link, RequestConfiguration, i); | 682 | cs_error(link, RequestConfiguration, i); |
683 | goto failed; | 683 | goto failed; |
684 | } | 684 | } |
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index ec12560e0342..e6e6b037695a 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -617,13 +617,13 @@ static int dtl1_config(struct pcmcia_device *link) | |||
617 | goto failed; | 617 | goto failed; |
618 | 618 | ||
619 | i = pcmcia_request_irq(link, &link->irq); | 619 | i = pcmcia_request_irq(link, &link->irq); |
620 | if (i != CS_SUCCESS) { | 620 | if (i != 0) { |
621 | cs_error(link, RequestIRQ, i); | 621 | cs_error(link, RequestIRQ, i); |
622 | link->irq.AssignedIRQ = 0; | 622 | link->irq.AssignedIRQ = 0; |
623 | } | 623 | } |
624 | 624 | ||
625 | i = pcmcia_request_configuration(link, &link->conf); | 625 | i = pcmcia_request_configuration(link, &link->conf); |
626 | if (i != CS_SUCCESS) { | 626 | if (i != 0) { |
627 | cs_error(link, RequestConfiguration, i); | 627 | cs_error(link, RequestConfiguration, i); |
628 | goto failed; | 628 | goto failed; |
629 | } | 629 | } |