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/pcmcia_ioctl.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/pcmcia_ioctl.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index a6289e5a75e1..e27c71ebfda2 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -964,19 +964,19 @@ static int ds_ioctl(struct inode * inode, struct file * file, | |||
964 | if ((err == 0) && (ret != 0)) { | 964 | if ((err == 0) && (ret != 0)) { |
965 | ds_dbg(2, "ds_ioctl: ret = %d\n", ret); | 965 | ds_dbg(2, "ds_ioctl: ret = %d\n", ret); |
966 | switch (ret) { | 966 | switch (ret) { |
967 | case CS_BAD_SOCKET: case CS_NO_CARD: | 967 | case -ENODEV: |
968 | err = -ENODEV; break; | 968 | case -EINVAL: |
969 | case CS_BAD_ARGS: case CS_BAD_ATTRIBUTE: case CS_BAD_IRQ: | 969 | case -EBUSY: |
970 | case -ENOSYS: | ||
971 | err = ret; | ||
972 | break; | ||
973 | case CS_BAD_ARGS: case CS_BAD_IRQ: | ||
970 | case CS_BAD_TUPLE: | 974 | case CS_BAD_TUPLE: |
971 | err = -EINVAL; break; | 975 | err = -EINVAL; break; |
972 | case CS_IN_USE: | 976 | case -ENOMEM: |
973 | err = -EBUSY; break; | ||
974 | case CS_OUT_OF_RESOURCE: | ||
975 | err = -ENOSPC; break; | 977 | err = -ENOSPC; break; |
976 | case -ENOSPC: | 978 | case -ENOSPC: |
977 | err = -ENODATA; break; | 979 | err = -ENODATA; break; |
978 | case -ENOSYS: | ||
979 | err = -ENOSYS; break; | ||
980 | default: | 980 | default: |
981 | err = -EIO; break; | 981 | err = -EIO; break; |
982 | } | 982 | } |