diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 05:47:29 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:54 -0400 |
commit | 635d19bea0e91df473a81391ec8f3db2d049a218 (patch) | |
tree | 8886deb8530f815711ad0c65bc35ce491f25f3f9 /drivers/pcmcia/pcmcia_ioctl.c | |
parent | f958095ef4fc96e978c6eddcaca29100e5276c7f (diff) |
pcmcia: deprecate CS_NO_MORE_ITEMS
CS_NO_MORE_ITEMS is returned by the CIS tuple reading and parsing code if
the end of a tuple chain is reached. As at least one PCMCIA driver relies
on matching this return value, replace it with -ENOSPC which is now
uniquely used for this purpose within the in-kernel pcmcia subsystem.
CC: Russell King <rmk+kernel@arm.linux.org.uk>
CC: linux-serial@vger.kernel.org
CC: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index ed8c4fb1e8c1..a6289e5a75e1 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -973,7 +973,7 @@ static int ds_ioctl(struct inode * inode, struct file * file, | |||
973 | err = -EBUSY; break; | 973 | err = -EBUSY; break; |
974 | case CS_OUT_OF_RESOURCE: | 974 | case CS_OUT_OF_RESOURCE: |
975 | err = -ENOSPC; break; | 975 | err = -ENOSPC; break; |
976 | case CS_NO_MORE_ITEMS: | 976 | case -ENOSPC: |
977 | err = -ENODATA; break; | 977 | err = -ENODATA; break; |
978 | case -ENOSYS: | 978 | case -ENOSYS: |
979 | err = -ENOSYS; break; | 979 | err = -ENOSYS; break; |