diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 05:10:56 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:43 -0400 |
commit | 3939c1ef1f954409d1441c09fbc08376655758fe (patch) | |
tree | a66c10593b8b47a1a63471dd6fc6f9fb214063ca /drivers/pcmcia/pcmcia_ioctl.c | |
parent | d8b0a49da4f213c637d458319432016f4ea5e12a (diff) |
pcmcia: deprecate CS_NO_CARD
It means that no card can be detected in the socket, so return -ENODEV
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index 40bef470b47c..ed8c4fb1e8c1 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -248,7 +248,7 @@ static int pccard_get_status(struct pcmcia_socket *s, | |||
248 | if (s->state & SOCKET_SUSPEND) | 248 | if (s->state & SOCKET_SUSPEND) |
249 | status->CardState |= CS_EVENT_PM_SUSPEND; | 249 | status->CardState |= CS_EVENT_PM_SUSPEND; |
250 | if (!(s->state & SOCKET_PRESENT)) | 250 | if (!(s->state & SOCKET_PRESENT)) |
251 | return CS_NO_CARD; | 251 | return -ENODEV; |
252 | 252 | ||
253 | c = (p_dev) ? p_dev->function_config : NULL; | 253 | c = (p_dev) ? p_dev->function_config : NULL; |
254 | 254 | ||
@@ -294,7 +294,7 @@ int pccard_get_configuration_info(struct pcmcia_socket *s, | |||
294 | config_t *c; | 294 | config_t *c; |
295 | 295 | ||
296 | if (!(s->state & SOCKET_PRESENT)) | 296 | if (!(s->state & SOCKET_PRESENT)) |
297 | return CS_NO_CARD; | 297 | return -ENODEV; |
298 | 298 | ||
299 | 299 | ||
300 | #ifdef CONFIG_CARDBUS | 300 | #ifdef CONFIG_CARDBUS |