aboutsummaryrefslogtreecommitdiffstats
path: root/include/pcmcia/cs.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 12:27:56 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-23 02:34:36 +0200
commit9c8b7965f594fdff37c59446b9314ed7b4b44d07 (patch)
treead9d562c0f70c5b7723f7eda15b39d57da85755b /include/pcmcia/cs.h
parent3f9c5f4cb7e00d424a56a6431e9c98b3b17851e4 (diff)
downloadmrst-s0i3-test-9c8b7965f594fdff37c59446b9314ed7b4b44d07.tar.gz
mrst-s0i3-test-9c8b7965f594fdff37c59446b9314ed7b4b44d07.tar.xz
mrst-s0i3-test-9c8b7965f594fdff37c59446b9314ed7b4b44d07.zip
pcmcia: remove CS_ error codes alltogether
Remoe the CS_ error codes. Drivers are expected to use default error definitions (errno.h etc.). Only one CS_ error code -- CS_IN_USE -- is used internally by the (deprecated) pcmcia-cs userspace package. Therefore, keep this one around so that it still compiles. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/cs.h')
-rw-r--r--include/pcmcia/cs.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
index d672fdefdf2..3585e1be4c5 100644
--- a/include/pcmcia/cs.h
+++ b/include/pcmcia/cs.h
@@ -287,39 +287,6 @@ typedef struct error_info_t {
#define CS_EVENT_3VCARD 0x200000
#define CS_EVENT_XVCARD 0x400000
-/* Return codes */
-#define CS_SUCCESS 0x00
-#define CS_BAD_ADAPTER -ENODEV
-#define CS_BAD_ATTRIBUTE -EINVAL
-#define CS_BAD_BASE -EINVAL
-#define CS_BAD_EDC -ENODEV
-#define CS_BAD_IRQ -EINVAL
-#define CS_BAD_OFFSET -EINVAL
-#define CS_BAD_PAGE -EINVAL
-#define CS_READ_FAILURE -EIO
-#define CS_BAD_SIZE -EINVAL
-#define CS_BAD_SOCKET -EINVAL
-#define CS_BAD_TYPE -EINVAL
-#define CS_BAD_VCC -EINVAL
-#define CS_BAD_VPP -EINVAL
-#define CS_BAD_WINDOW -ENODEV
-#define CS_WRITE_FAILURE -EIO
-#define CS_NO_CARD -ENODEV
-#define CS_UNSUPPORTED_FUNCTION -ENODEV
-#define CS_UNSUPPORTED_MODE -ENODEV
-#define CS_BAD_SPEED -ENODEV
-#define CS_BUSY -ENODEV
-#define CS_GENERAL_FAILURE -ETIMEDOUT
-#define CS_WRITE_PROTECTED -EPERM
-#define CS_BAD_ARG_LENGTH -ENODEV
-#define CS_BAD_ARGS -EINVAL
-#define CS_CONFIGURATION_LOCKED -EACCES
-#define CS_IN_USE -EBUSY
-#define CS_NO_MORE_ITEMS -ENOSPC
-#define CS_OUT_OF_RESOURCE -ENOMEM
-#define CS_BAD_HANDLE -EINVAL
-
-#define CS_BAD_TUPLE -EINVAL
#ifdef __KERNEL__