lkml.org 
[lkml]   [2013]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 07/29] PCI, x86: Use for_each_pci_resource() with pci_allocate_bridge_resources
    Date
    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    arch/x86/pci/i386.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c
    index 94919e3..7c3395a 100644
    --- a/arch/x86/pci/i386.c
    +++ b/arch/x86/pci/i386.c
    @@ -206,8 +206,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++) {
    - r = &dev->resource[idx];
    + for_each_pci_resource(dev, r, idx, PCI_BRIDGE_RES) {
    if (!r->flags)
    continue;
    if (!r->start || pci_claim_resource(dev, idx) < 0) {
    --
    1.8.1.4


    \
     
     \ /
      Last update: 2013-04-13 01:41    [W:3.698 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site