summaryrefslogtreecommitdiffstats
path: root/include/pcmcia/cs.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 11:40:19 +0200
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-23 02:29:48 +0200
commitf958095ef4fc96e978c6eddcaca29100e5276c7f (patch)
tree16afbb0172e7d7851350d37784bbf1fb0493c90d /include/pcmcia/cs.h
parent943f70f1b5182c5220641ccb7bb905005162e227 (diff)
downloadblackbird-op-linux-f958095ef4fc96e978c6eddcaca29100e5276c7f.tar.gz
blackbird-op-linux-f958095ef4fc96e978c6eddcaca29100e5276c7f.zip
pcmcia: deprecate CS_IN_USE
If a resource is already in use, mark it with -EBUSY. Same for cards already asleep. (includes a fix for a bug found by Larry Finger -- thanks!) Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/cs.h')
-rw-r--r--include/pcmcia/cs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h
index a517a5845af0..2dc1411b27c9 100644
--- a/include/pcmcia/cs.h
+++ b/include/pcmcia/cs.h
@@ -314,7 +314,7 @@ typedef struct error_info_t {
#define CS_BAD_ARG_LENGTH -ENODEV
#define CS_BAD_ARGS 0x1c
#define CS_CONFIGURATION_LOCKED -EACCES
-#define CS_IN_USE 0x1e
+#define CS_IN_USE -EBUSY
#define CS_NO_MORE_ITEMS 0x1f
#define CS_OUT_OF_RESOURCE -ENOMEM
#define CS_BAD_HANDLE -EINVAL
OpenPOWER on IntegriCloud