lkml.org 
[lkml]   [2004]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] PCI fixes for 2.6.9
    Date
    From
    ChangeSet 1.1997.37.23, 2004/10/06 12:12:44-07:00, janitor@sternwelten.at

    [PATCH] PCI list_for_each: arch-sparc-kernel-pcic.c

    s/for/list_for_each/

    Signed-off-by: Domen Puncer <domen@coderock.org>
    Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
    Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>


    arch/sparc/kernel/pcic.c | 6 ++----
    1 files changed, 2 insertions(+), 4 deletions(-)


    diff -Nru a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c
    --- a/arch/sparc/kernel/pcic.c 2004-10-19 15:25:43 -07:00
    +++ b/arch/sparc/kernel/pcic.c 2004-10-19 15:25:43 -07:00
    @@ -603,7 +603,7 @@
    */
    void __init pcibios_fixup_bus(struct pci_bus *bus)
    {
    - struct list_head *walk;
    + struct pci_dev *dev;
    int i, has_io, has_mem;
    unsigned int cmd;
    struct linux_pcic *pcic;
    @@ -625,9 +625,7 @@
    return;
    }

    - walk = &bus->devices;
    - for (walk = walk->next; walk != &bus->devices; walk = walk->next) {
    - struct pci_dev *dev = pci_dev_b(walk);
    + list_for_each_entry(dev, &bus->devices, bus_list) {

    /*
    * Comment from i386 branch:
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.025 / U:0.492 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site