diff options
Diffstat (limited to 'drivers/pcmcia/pcmcia_resource.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 670465d4aac2..8f2c805e793b 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -211,7 +211,7 @@ int pcmcia_get_window(struct pcmcia_socket *s, window_handle_t *handle, | |||
211 | if (s->state & SOCKET_WIN_REQ(w)) | 211 | if (s->state & SOCKET_WIN_REQ(w)) |
212 | break; | 212 | break; |
213 | if (w == MAX_WIN) | 213 | if (w == MAX_WIN) |
214 | return CS_NO_MORE_ITEMS; | 214 | return -EINVAL; |
215 | win = &s->win[w]; | 215 | win = &s->win[w]; |
216 | req->Base = win->ctl.res->start; | 216 | req->Base = win->ctl.res->start; |
217 | req->Size = win->ctl.res->end - win->ctl.res->start + 1; | 217 | req->Size = win->ctl.res->end - win->ctl.res->start + 1; |