diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 05:58:53 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:55 -0400 |
commit | 610e23749e87920136e1a221266a43cb7e3823f1 (patch) | |
tree | 5696af5b6e7be04e17a852e6c810798930a9b6c4 /drivers/pcmcia/ds.c | |
parent | 635d19bea0e91df473a81391ec8f3db2d049a218 (diff) |
pcmcia: deprecate CS_BAD_ATTRIBUTE, CS_BAD_TYPE and CS_BAD_PAGE
CS_BAD_TYPE was only used in cs.c and already properly annotated by error
messages. CS_BAD_ATTRIBUTE and CS_BAD_PAGE mean a badly written driver, so
ds_dbg() output and -EINVAL seems to be enough.
(includes bugfix from and
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
)
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 591d9627bb2a..4092a5976e62 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -74,22 +74,19 @@ typedef struct lookup_t { | |||
74 | } lookup_t; | 74 | } lookup_t; |
75 | 75 | ||
76 | static const lookup_t error_table[] = { | 76 | static const lookup_t error_table[] = { |
77 | { CS_SUCCESS, "Operation succeeded" }, | 77 | { 0, "Operation succeeded" }, |
78 | { CS_BAD_ATTRIBUTE, "Bad attribute", }, | ||
79 | { CS_BAD_BASE, "Bad base address" }, | 78 | { CS_BAD_BASE, "Bad base address" }, |
80 | { CS_BAD_IRQ, "Bad IRQ" }, | 79 | { CS_BAD_IRQ, "Bad IRQ" }, |
81 | { CS_BAD_OFFSET, "Bad offset" }, | 80 | { CS_BAD_OFFSET, "Bad offset" }, |
82 | { CS_BAD_PAGE, "Bad page number" }, | ||
83 | { CS_BAD_SIZE, "Bad size" }, | 81 | { CS_BAD_SIZE, "Bad size" }, |
84 | { CS_BAD_TYPE, "Bad type" }, | ||
85 | { -EIO, "Input/Output error" }, | 82 | { -EIO, "Input/Output error" }, |
86 | { -ENODEV, "No card present" }, | 83 | { -ENODEV, "No card present" }, |
87 | { -EINVAL, "Bad parameter" }, | 84 | { -EINVAL, "Bad parameter" }, |
88 | { CS_BAD_ARGS, "Bad arguments" }, | 85 | { CS_BAD_ARGS, "Bad arguments" }, |
89 | { -EACCES, "Configuration locked" }, | 86 | { -EACCES, "Configuration locked" }, |
90 | { CS_IN_USE, "Resource in use" }, | 87 | { -EBUSY, "Resource in use" }, |
91 | { -ENOSPC, "No more items" }, | 88 | { -ENOSPC, "No more items" }, |
92 | { CS_OUT_OF_RESOURCE, "Out of resource" }, | 89 | { -ENOMEM, "Out of resource" }, |
93 | { CS_BAD_TUPLE, "Bad CIS tuple" } | 90 | { CS_BAD_TUPLE, "Bad CIS tuple" } |
94 | }; | 91 | }; |
95 | 92 | ||