Skip to content

Commit

Permalink
[PATCH] pcmcia: only start up nonstatic sockets if both mem and io ar…
Browse files Browse the repository at this point in the history
…e available

Only start up nonstatic sockets if both IO and MEM resources are available.
Thanks to Russell King and Matthew Wilcox for tracking this down.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Sep 28, 2005
1 parent 1146bc7 commit 54bb567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)

/* if we got at least one of IO, and one of MEM, we can be glad and
* activate the PCMCIA subsystem */
if (done & (IORESOURCE_MEM | IORESOURCE_IO))
if (done == (IORESOURCE_MEM | IORESOURCE_IO))
s->resource_setup_done = 1;

return 0;
Expand Down

0 comments on commit 54bb567

Please sign in to comment.