]> git.hungrycats.org Git - linux/commitdiff
We need to assign resources to cardbus cards _regardless_ of whether
authorLinus Torvalds <torvalds@home.transmeta.com>
Wed, 15 Jan 2003 10:12:19 +0000 (02:12 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 15 Jan 2003 10:12:19 +0000 (02:12 -0800)
probing tells us they already have a range. The old information is
stale.

drivers/pcmcia/cardbus.c

index a823f54bc593d5536e8116bcd60a05a7918a1769..adbecd75217490abaad9982f1297c64e8d8404c7 100644 (file)
@@ -291,7 +291,7 @@ int cb_alloc(socket_info_t * s)
                /* We need to assign resources for expansion ROM. */
                for (r = 0; r < 7; r++) {
                        struct resource *res = dev->resource + r;
-                       if (!res->start && res->end)
+                       if (res->flags)
                                pci_assign_resource(dev, r);
                }