From patchwork Mon Mar 22 17:27:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Brodowski X-Patchwork-Id: 87465 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2MHRZcN021496 for ; Mon, 22 Mar 2010 17:27:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755383Ab0CVR1R (ORCPT ); Mon, 22 Mar 2010 13:27:17 -0400 Received: from isilmar.linta.de ([213.133.102.198]:47247 "EHLO linta.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755087Ab0CVR1O (ORCPT ); Mon, 22 Mar 2010 13:27:14 -0400 Received: (qmail 24813 invoked by uid 1000); 22 Mar 2010 17:27:10 -0000 Date: Mon, 22 Mar 2010 18:27:10 +0100 From: Dominik Brodowski To: Bjorn Helgaas Cc: Komuro , Jesse Barnes , linux-pcmcia@lists.infradead.org, linux-pci@vger.kernel.org Subject: Re: pci_bus_for_each_resource, transparent bridges and rsrc_nonstatic.c Message-ID: <20100322172710.GA21104@isilmar.linta.de> Mail-Followup-To: Bjorn Helgaas , Komuro , Jesse Barnes , linux-pcmcia@lists.infradead.org, linux-pci@vger.kernel.org References: <20091111203303.GA7939@comet.dominikbrodowski.net> <20100322183832.f07b9191.komurojun-mbn@nifty.com> <20100322120041.GA5022@comet.dominikbrodowski.net> <201003221034.30205.bjorn.helgaas@hp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201003221034.30205.bjorn.helgaas@hp.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 22 Mar 2010 17:27:36 +0000 (UTC) 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;