diff mbox

pci_bus_for_each_resource, transparent bridges and rsrc_nonstatic.c

Message ID 20100322172710.GA21104@isilmar.linta.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Dominik Brodowski March 22, 2010, 5:27 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index ba3a53e..b0e60a1 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -933,7 +933,8 @@  static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
 		return -EINVAL;
 #endif
 
-	pci_bus_for_each_resource(s->cb_dev->bus, res, i) {
+	for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) {
+		res = s->cb_dev->bus->resource[i];
 		if (!res)
 			continue;