|
@@ -95,7 +95,7 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base,
|
|
* potential conflicts, just the most obvious ones.
|
|
* potential conflicts, just the most obvious ones.
|
|
*/
|
|
*/
|
|
for (i = 0; i < MAX_IO_WIN; i++)
|
|
for (i = 0; i < MAX_IO_WIN; i++)
|
|
- if ((s->io[i].res) &&
|
|
|
|
|
|
+ if ((s->io[i].res) && *base &&
|
|
((s->io[i].res->start & (align-1)) == *base))
|
|
((s->io[i].res->start & (align-1)) == *base))
|
|
return 1;
|
|
return 1;
|
|
for (i = 0; i < MAX_IO_WIN; i++) {
|
|
for (i = 0; i < MAX_IO_WIN; i++) {
|