
From: Josh Green <jgreen@users.sourceforge.net>

I found a bug in drivers/pcmcia/ds.c for version 2.6.11rc2 (from linux-mips
CVS) that was causing initialization problems with the second card when I
had two PCMCIA wireless cards in my AMD Alchemy DB1100 board.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/drivers/pcmcia/ds.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/pcmcia/ds.c~pcmcia-dc-initialisation-fix drivers/pcmcia/ds.c
--- 25/drivers/pcmcia/ds.c~pcmcia-dc-initialisation-fix	2005-02-04 02:33:10.144125824 -0800
+++ 25-akpm/drivers/pcmcia/ds.c	2005-02-04 02:33:10.149125064 -0800
@@ -660,7 +660,7 @@ int pcmcia_register_client(client_handle
 			p_dev = pcmcia_get_dev(p_dev);
 			if (!p_dev)
 				continue;
-			if ((!p_dev->client.state & CLIENT_UNBOUND) ||
+			if (!(p_dev->client.state & CLIENT_UNBOUND) ||
 			    (!p_dev->dev.driver)) {
 				pcmcia_put_dev(p_dev);
 				continue;
_
