From patchwork Mon Mar 29 19:47:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Brodowski X-Patchwork-Id: 89060 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 o2TJl9w5019109 for ; Mon, 29 Mar 2010 19:47:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264Ab0C2TrR (ORCPT ); Mon, 29 Mar 2010 15:47:17 -0400 Received: from isilmar.linta.de ([213.133.102.198]:34924 "EHLO linta.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753078Ab0C2TrQ (ORCPT ); Mon, 29 Mar 2010 15:47:16 -0400 Received: (qmail 31592 invoked from network); 29 Mar 2010 19:47:14 -0000 Received: from p54a059f8.dip.t-dialin.net (HELO comet.dominikbrodowski.net) (brodo@84.160.89.248) by isilmar.linta.de with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Mar 2010 19:47:14 -0000 Received: by comet.dominikbrodowski.net (Postfix, from userid 1000) id CD97C58082; Mon, 29 Mar 2010 21:47:03 +0200 (CEST) Date: Mon, 29 Mar 2010 21:47:03 +0200 From: Dominik Brodowski To: Jesse Barnes Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-pcmcia@lists.infradead.org Subject: Re: pci_bus_for_each_resource, transparent bridges and rsrc_nonstatic.c Message-ID: <20100329194703.GC8450@comet.dominikbrodowski.net> Mail-Followup-To: Jesse Barnes , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-pcmcia@lists.infradead.org References: <20091111203303.GA7939@comet.dominikbrodowski.net> <201003221628.56232.bjorn.helgaas@hp.com> <20100322225235.GA29522@isilmar.linta.de> <201003221711.34997.bjorn.helgaas@hp.com> <20100322232800.GA532@isilmar.linta.de> <20100327190340.27310.qmail@stuge.se> <20100328114559.GA2504@comet.dominikbrodowski.net> <20100329094137.25a0e695@jbarnes-piketon> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100329094137.25a0e695@jbarnes-piketon> User-Agent: Mutt/1.5.20 (2009-06-14) 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, 29 Mar 2010 19:47:18 +0000 (UTC) diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index 39c89e1..ad68e53 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c @@ -940,7 +940,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;