diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 04:36:50 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:39 -0400 |
commit | 5ff87db6792844ae24cc784512a95e0c94521b19 (patch) | |
tree | 1a9cb26c8dc813aaa67068f126010bcf40d7025a /drivers/pcmcia/ds.c | |
parent | 4c89e88bfde6a3c179790e21004f24e09a058290 (diff) |
pcmcia: deprecate unused CS_ error codes
Deprecate unused CS_ error codes by replacing their definitions with
generic error messages, and removing them from the error_t lookup table.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 20bef0c12c14..7142fd647e7b 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -75,29 +75,19 @@ typedef struct lookup_t { | |||
75 | 75 | ||
76 | static const lookup_t error_table[] = { | 76 | static const lookup_t error_table[] = { |
77 | { CS_SUCCESS, "Operation succeeded" }, | 77 | { CS_SUCCESS, "Operation succeeded" }, |
78 | { CS_BAD_ADAPTER, "Bad adapter" }, | ||
79 | { CS_BAD_ATTRIBUTE, "Bad attribute", }, | 78 | { CS_BAD_ATTRIBUTE, "Bad attribute", }, |
80 | { CS_BAD_BASE, "Bad base address" }, | 79 | { CS_BAD_BASE, "Bad base address" }, |
81 | { CS_BAD_EDC, "Bad EDC" }, | ||
82 | { CS_BAD_IRQ, "Bad IRQ" }, | 80 | { CS_BAD_IRQ, "Bad IRQ" }, |
83 | { CS_BAD_OFFSET, "Bad offset" }, | 81 | { CS_BAD_OFFSET, "Bad offset" }, |
84 | { CS_BAD_PAGE, "Bad page number" }, | 82 | { CS_BAD_PAGE, "Bad page number" }, |
85 | { CS_READ_FAILURE, "Read failure" }, | ||
86 | { CS_BAD_SIZE, "Bad size" }, | 83 | { CS_BAD_SIZE, "Bad size" }, |
87 | { CS_BAD_SOCKET, "Bad socket" }, | ||
88 | { CS_BAD_TYPE, "Bad type" }, | 84 | { CS_BAD_TYPE, "Bad type" }, |
89 | { CS_BAD_VCC, "Bad Vcc" }, | 85 | { CS_BAD_VCC, "Bad Vcc" }, |
90 | { CS_BAD_VPP, "Bad Vpp" }, | 86 | { CS_BAD_VPP, "Bad Vpp" }, |
91 | { CS_BAD_WINDOW, "Bad window" }, | ||
92 | { CS_WRITE_FAILURE, "Write failure" }, | ||
93 | { CS_NO_CARD, "No card present" }, | 87 | { CS_NO_CARD, "No card present" }, |
94 | { CS_UNSUPPORTED_FUNCTION, "Usupported function" }, | 88 | { CS_UNSUPPORTED_FUNCTION, "Usupported function" }, |
95 | { CS_UNSUPPORTED_MODE, "Unsupported mode" }, | 89 | { CS_UNSUPPORTED_MODE, "Unsupported mode" }, |
96 | { CS_BAD_SPEED, "Bad speed" }, | ||
97 | { CS_BUSY, "Resource busy" }, | ||
98 | { CS_GENERAL_FAILURE, "General failure" }, | 90 | { CS_GENERAL_FAILURE, "General failure" }, |
99 | { CS_WRITE_PROTECTED, "Write protected" }, | ||
100 | { CS_BAD_ARG_LENGTH, "Bad argument length" }, | ||
101 | { CS_BAD_ARGS, "Bad arguments" }, | 91 | { CS_BAD_ARGS, "Bad arguments" }, |
102 | { CS_CONFIGURATION_LOCKED, "Configuration locked" }, | 92 | { CS_CONFIGURATION_LOCKED, "Configuration locked" }, |
103 | { CS_IN_USE, "Resource in use" }, | 93 | { CS_IN_USE, "Resource in use" }, |