diff options
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 |