diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-03 10:22:47 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-23 02:29:40 +0200 |
commit | 1168386aa7d850ead2ae135d5a7949a592c6e9a0 (patch) | |
tree | 9b36c2220df778fa74af93befb641c0569a5e862 /drivers/pcmcia/pcmcia_resource.c | |
parent | 5ff87db6792844ae24cc784512a95e0c94521b19 (diff) | |
download | op-kernel-dev-1168386aa7d850ead2ae135d5a7949a592c6e9a0.zip op-kernel-dev-1168386aa7d850ead2ae135d5a7949a592c6e9a0.tar.gz |
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 48e168e..69d87a7 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 for (w = 0; w < MAX_WIN; w++) if (!(s->state & SOCKET_WIN_REQ(w))) break; if (w == MAX_WIN) - return CS_OUT_OF_RESOURCE; + return CS_IN_USE; win = &s->win[w]; win->magic = WINDOW_MAGIC; |