Commit 5054f146 authored by Josh Green's avatar Josh Green Committed by Linus Torvalds

[PATCH] pcmcia: ds.c initialisation fix

A wrong ordering of operators in pcmica_register_client() causes
initialization problems with multiple PCMCIA cards.
Signed-off-by: default avatarJosh Green <jgreen@users.sourceforge.net>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 19944d17
......@@ -660,7 +660,7 @@ int pcmcia_register_client(client_handle_t *handle, client_reg_t *req)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment