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/net/wireless/wavelan_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/net/wireless/wavelan_cs.c')
-rw-r--r-- | drivers/net/wireless/wavelan_cs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c index b584c0ecc62d..fee9a0250534 100644 --- a/drivers/net/wireless/wavelan_cs.c +++ b/drivers/net/wireless/wavelan_cs.c | |||
@@ -3708,7 +3708,7 @@ wv_pcmcia_reset(struct net_device * dev) | |||
3708 | #endif | 3708 | #endif |
3709 | 3709 | ||
3710 | i = pcmcia_access_configuration_register(link, ®); | 3710 | i = pcmcia_access_configuration_register(link, ®); |
3711 | if(i != CS_SUCCESS) | 3711 | if (i != 0) |
3712 | { | 3712 | { |
3713 | cs_error(link, AccessConfigurationRegister, i); | 3713 | cs_error(link, AccessConfigurationRegister, i); |
3714 | return FALSE; | 3714 | return FALSE; |
@@ -3722,7 +3722,7 @@ wv_pcmcia_reset(struct net_device * dev) | |||
3722 | reg.Action = CS_WRITE; | 3722 | reg.Action = CS_WRITE; |
3723 | reg.Value = reg.Value | COR_SW_RESET; | 3723 | reg.Value = reg.Value | COR_SW_RESET; |
3724 | i = pcmcia_access_configuration_register(link, ®); | 3724 | i = pcmcia_access_configuration_register(link, ®); |
3725 | if(i != CS_SUCCESS) | 3725 | if (i != 0) |
3726 | { | 3726 | { |
3727 | cs_error(link, AccessConfigurationRegister, i); | 3727 | cs_error(link, AccessConfigurationRegister, i); |
3728 | return FALSE; | 3728 | return FALSE; |
@@ -3731,7 +3731,7 @@ wv_pcmcia_reset(struct net_device * dev) | |||
3731 | reg.Action = CS_WRITE; | 3731 | reg.Action = CS_WRITE; |
3732 | reg.Value = COR_LEVEL_IRQ | COR_CONFIG; | 3732 | reg.Value = COR_LEVEL_IRQ | COR_CONFIG; |
3733 | i = pcmcia_access_configuration_register(link, ®); | 3733 | i = pcmcia_access_configuration_register(link, ®); |
3734 | if(i != CS_SUCCESS) | 3734 | if (i != 0) |
3735 | { | 3735 | { |
3736 | cs_error(link, AccessConfigurationRegister, i); | 3736 | cs_error(link, AccessConfigurationRegister, i); |
3737 | return FALSE; | 3737 | return FALSE; |
@@ -3909,7 +3909,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3909 | do | 3909 | do |
3910 | { | 3910 | { |
3911 | i = pcmcia_request_io(link, &link->io); | 3911 | i = pcmcia_request_io(link, &link->io); |
3912 | if(i != CS_SUCCESS) | 3912 | if (i != 0) |
3913 | { | 3913 | { |
3914 | cs_error(link, RequestIO, i); | 3914 | cs_error(link, RequestIO, i); |
3915 | break; | 3915 | break; |
@@ -3920,7 +3920,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3920 | * actually assign a handler to the interrupt. | 3920 | * actually assign a handler to the interrupt. |
3921 | */ | 3921 | */ |
3922 | i = pcmcia_request_irq(link, &link->irq); | 3922 | i = pcmcia_request_irq(link, &link->irq); |
3923 | if(i != CS_SUCCESS) | 3923 | if (i != 0) |
3924 | { | 3924 | { |
3925 | cs_error(link, RequestIRQ, i); | 3925 | cs_error(link, RequestIRQ, i); |
3926 | break; | 3926 | break; |
@@ -3932,7 +3932,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3932 | */ | 3932 | */ |
3933 | link->conf.ConfigIndex = 1; | 3933 | link->conf.ConfigIndex = 1; |
3934 | i = pcmcia_request_configuration(link, &link->conf); | 3934 | i = pcmcia_request_configuration(link, &link->conf); |
3935 | if(i != CS_SUCCESS) | 3935 | if (i != 0) |
3936 | { | 3936 | { |
3937 | cs_error(link, RequestConfiguration, i); | 3937 | cs_error(link, RequestConfiguration, i); |
3938 | break; | 3938 | break; |
@@ -3948,7 +3948,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3948 | req.Base = req.Size = 0; | 3948 | req.Base = req.Size = 0; |
3949 | req.AccessSpeed = mem_speed; | 3949 | req.AccessSpeed = mem_speed; |
3950 | i = pcmcia_request_window(&link, &req, &link->win); | 3950 | i = pcmcia_request_window(&link, &req, &link->win); |
3951 | if(i != CS_SUCCESS) | 3951 | if (i != 0) |
3952 | { | 3952 | { |
3953 | cs_error(link, RequestWindow, i); | 3953 | cs_error(link, RequestWindow, i); |
3954 | break; | 3954 | break; |
@@ -3960,7 +3960,7 @@ wv_pcmcia_config(struct pcmcia_device * link) | |||
3960 | 3960 | ||
3961 | mem.CardOffset = 0; mem.Page = 0; | 3961 | mem.CardOffset = 0; mem.Page = 0; |
3962 | i = pcmcia_map_mem_page(link->win, &mem); | 3962 | i = pcmcia_map_mem_page(link->win, &mem); |
3963 | if(i != CS_SUCCESS) | 3963 | if (i != 0) |
3964 | { | 3964 | { |
3965 | cs_error(link, MapMemPage, i); | 3965 | cs_error(link, MapMemPage, i); |
3966 | break; | 3966 | break; |