diff options
-rw-r--r-- | drivers/pcmcia/cs.c | 4 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 1 | ||||
-rw-r--r-- | include/pcmcia/cs.h | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index 15a1203d45fb..f9424801b9c8 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c | |||
@@ -376,7 +376,7 @@ static int socket_reset(struct pcmcia_socket *skt) | |||
376 | } | 376 | } |
377 | 377 | ||
378 | cs_err(skt, "time out after reset.\n"); | 378 | cs_err(skt, "time out after reset.\n"); |
379 | return CS_GENERAL_FAILURE; | 379 | return -ETIMEDOUT; |
380 | } | 380 | } |
381 | 381 | ||
382 | /* | 382 | /* |
@@ -445,7 +445,7 @@ static int socket_setup(struct pcmcia_socket *skt, int initial_delay) | |||
445 | 445 | ||
446 | if (status & SS_PENDING) { | 446 | if (status & SS_PENDING) { |
447 | cs_err(skt, "voltage interrogation timed out.\n"); | 447 | cs_err(skt, "voltage interrogation timed out.\n"); |
448 | return CS_GENERAL_FAILURE; | 448 | return -ETIMEDOUT; |
449 | } | 449 | } |
450 | 450 | ||
451 | if (status & SS_CARDBUS) { | 451 | if (status & SS_CARDBUS) { |
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index aaac16aedee3..cb500195342f 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -85,7 +85,6 @@ static const lookup_t error_table[] = { | |||
85 | { -EIO, "Input/Output error" }, | 85 | { -EIO, "Input/Output error" }, |
86 | { -ENODEV, "No card present" }, | 86 | { -ENODEV, "No card present" }, |
87 | { -EINVAL, "Bad parameter" }, | 87 | { -EINVAL, "Bad parameter" }, |
88 | { CS_GENERAL_FAILURE, "General failure" }, | ||
89 | { CS_BAD_ARGS, "Bad arguments" }, | 88 | { CS_BAD_ARGS, "Bad arguments" }, |
90 | { CS_CONFIGURATION_LOCKED, "Configuration locked" }, | 89 | { CS_CONFIGURATION_LOCKED, "Configuration locked" }, |
91 | { CS_IN_USE, "Resource in use" }, | 90 | { CS_IN_USE, "Resource in use" }, |
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 3b4cd51770dd..bec295cb94f6 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -309,7 +309,7 @@ typedef struct error_info_t { | |||
309 | #define CS_UNSUPPORTED_MODE -ENODEV | 309 | #define CS_UNSUPPORTED_MODE -ENODEV |
310 | #define CS_BAD_SPEED -ENODEV | 310 | #define CS_BAD_SPEED -ENODEV |
311 | #define CS_BUSY -ENODEV | 311 | #define CS_BUSY -ENODEV |
312 | #define CS_GENERAL_FAILURE 0x19 | 312 | #define CS_GENERAL_FAILURE -ETIMEDOUT |
313 | #define CS_WRITE_PROTECTED -EPERM | 313 | #define CS_WRITE_PROTECTED -EPERM |
314 | #define CS_BAD_ARG_LENGTH -ENODEV | 314 | #define CS_BAD_ARG_LENGTH -ENODEV |
315 | #define CS_BAD_ARGS 0x1c | 315 | #define CS_BAD_ARGS 0x1c |