diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 04:22:47 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-22 20:29:40 -0400 |
commit | 1168386aa7d850ead2ae135d5a7949a592c6e9a0 (patch) | |
tree | 9b36c2220df778fa74af93befb641c0569a5e862 /drivers/pcmcia/pcmcia_resource.c | |
parent | 5ff87db6792844ae24cc784512a95e0c94521b19 (diff) |
pcmcia: deprecate CS_OUT_OF_RESOURCE
CS_OUT_OF_RESOURCE was almost only used to note -ENOMEM situations.
Therefore, use -ENOMEM explicitely, and also print out warnings.
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
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 48e168e8165b..69d87a7e0766 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -780,7 +780,7 @@ int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_h | |||
780 | for (w = 0; w < MAX_WIN; w++) | 780 | for (w = 0; w < MAX_WIN; w++) |
781 | if (!(s->state & SOCKET_WIN_REQ(w))) break; | 781 | if (!(s->state & SOCKET_WIN_REQ(w))) break; |
782 | if (w == MAX_WIN) | 782 | if (w == MAX_WIN) |
783 | return CS_OUT_OF_RESOURCE; | 783 | return CS_IN_USE; |
784 | 784 | ||
785 | win = &s->win[w]; | 785 | win = &s->win[w]; |
786 | win->magic = WINDOW_MAGIC; | 786 | win->magic = WINDOW_MAGIC; |