lkml.org 
[lkml]   [2012]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -v2 08/26] PCI, acpiphp: Use for_each_pci_dev_resource helper
    Date
    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    drivers/pci/hotplug/acpiphp_glue.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
    index 9d781a7..90e68670d 100644
    --- a/drivers/pci/hotplug/acpiphp_glue.c
    +++ b/drivers/pci/hotplug/acpiphp_glue.c
    @@ -1025,10 +1025,10 @@ static void acpiphp_sanitize_bus(struct pci_bus *bus)
    struct pci_dev *dev;
    int i;
    unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM;
    + struct resource *res;

    list_for_each_entry(dev, &bus->devices, bus_list) {
    - for (i=0; i<PCI_BRIDGE_RESOURCES; i++) {
    - struct resource *res = &dev->resource[i];
    + for_each_pci_dev_nobridge_resource(dev, res, i) {
    if ((res->flags & type_mask) && !res->start &&
    res->end) {
    /* Could not assign a required resources
    --
    1.7.7


    \
     
     \ /
      Last update: 2012-03-19 06:57    [W:4.126 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site