Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114138
b: refs/heads/master
c: 8567142
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Aug 23, 2008
1 parent 6d9ea6e commit 329780e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3939c1ef1f954409d1441c09fbc08376655758fe
refs/heads/master: 8567142e87322141f9344d1ab632ccf5190cd0d3
4 changes: 2 additions & 2 deletions trunk/drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static int socket_reset(struct pcmcia_socket *skt)
}

cs_err(skt, "time out after reset.\n");
return CS_GENERAL_FAILURE;
return -ETIMEDOUT;
}

/*
Expand Down Expand Up @@ -445,7 +445,7 @@ static int socket_setup(struct pcmcia_socket *skt, int initial_delay)

if (status & SS_PENDING) {
cs_err(skt, "voltage interrogation timed out.\n");
return CS_GENERAL_FAILURE;
return -ETIMEDOUT;
}

if (status & SS_CARDBUS) {
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ static const lookup_t error_table[] = {
{ -EIO, "Input/Output error" },
{ -ENODEV, "No card present" },
{ -EINVAL, "Bad parameter" },
{ CS_GENERAL_FAILURE, "General failure" },
{ CS_BAD_ARGS, "Bad arguments" },
{ CS_CONFIGURATION_LOCKED, "Configuration locked" },
{ CS_IN_USE, "Resource in use" },
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/pcmcia/cs.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ typedef struct error_info_t {
#define CS_UNSUPPORTED_MODE -ENODEV
#define CS_BAD_SPEED -ENODEV
#define CS_BUSY -ENODEV
#define CS_GENERAL_FAILURE 0x19
#define CS_GENERAL_FAILURE -ETIMEDOUT
#define CS_WRITE_PROTECTED -EPERM
#define CS_BAD_ARG_LENGTH -ENODEV
#define CS_BAD_ARGS 0x1c
Expand Down

0 comments on commit 329780e

Please sign in to comment.