From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161939Ab2CSFtj (ORCPT ); Mon, 19 Mar 2012 01:49:39 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:31266 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161752Ab2CSFtg (ORCPT ); Mon, 19 Mar 2012 01:49:36 -0400 From: Yinghai Lu To: Jesse Barnes , x86 Cc: Bjorn Helgaas , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Yinghai Lu Subject: [PATCH -v2 05/26] x86, PCI: Use for_each_res with pci_allocate_bridge_resources Date: Sun, 18 Mar 2012 22:48:28 -0700 Message-Id: <1332136129-14010-6-git-send-email-yinghai@kernel.org> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1332136129-14010-1-git-send-email-yinghai@kernel.org> References: <1332136129-14010-1-git-send-email-yinghai@kernel.org> X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-CT-RefId: str=0001.0A090209.4F66C8EE.0012,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Yinghai Lu --- arch/x86/pci/i386.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c index e1ff375..570197e 100644 --- a/arch/x86/pci/i386.c +++ b/arch/x86/pci/i386.c @@ -198,7 +198,7 @@ static void pcibios_allocate_bridge_resources(struct pci_dev *dev) int idx; struct resource *r; - for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { + for_each_pci_dev_bridge_resource(dev, r, idx) { r = &dev->resource[idx]; if (r->parent) /* Already allocated */ continue; -- 1.7.7