diff options
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index e0ba4b5daa13..6bbfbd0e02a5 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -99,20 +99,11 @@ static inline void cs_socket_put(struct pcmcia_socket *skt) | |||
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
102 | #define CHECK_HANDLE(h) \ | ||
103 | (((h) == NULL) || ((h)->client_magic != CLIENT_MAGIC)) | ||
104 | |||
105 | #define CHECK_SOCKET(s) \ | 102 | #define CHECK_SOCKET(s) \ |
106 | (((s) >= sockets) || (socket_table[s]->ops == NULL)) | 103 | (((s) >= sockets) || (socket_table[s]->ops == NULL)) |
107 | 104 | ||
108 | #define SOCKET(h) (h->Socket) | 105 | #define SOCKET(h) (h->socket) |
109 | #define CONFIG(h) (&SOCKET(h)->config[(h)->Function]) | 106 | #define CONFIG(h) (&SOCKET(h)->config[(h)->func]) |
110 | |||
111 | #define CHECK_REGION(r) \ | ||
112 | (((r) == NULL) || ((r)->region_magic != REGION_MAGIC)) | ||
113 | |||
114 | #define CHECK_ERASEQ(q) \ | ||
115 | (((q) == NULL) || ((q)->eraseq_magic != ERASEQ_MAGIC)) | ||
116 | 107 | ||
117 | /* In cardbus.c */ | 108 | /* In cardbus.c */ |
118 | int cb_alloc(struct pcmcia_socket *s); | 109 | int cb_alloc(struct pcmcia_socket *s); |