]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC64] Fix PSYCHO PCI controler init.
authorMarc Zyngier <maz@misterjones.org>
Fri, 14 Jul 2006 23:53:50 +0000 (16:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 15 Jul 2006 00:00:30 +0000 (17:00 -0700)
pbm->name should be initialized before calling
pbm_register_toplevel_resources. Move the call a few lines down to
avoid a nice Oops.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci_psycho.c

index 83f88ad4ffa5c77a873fd1f32ed92d9867bd6493..1ec0aab68c08079d5d7204c770496c019086c416 100644 (file)
@@ -1200,12 +1200,13 @@ static void psycho_pbm_init(struct pci_controller_info *p,
        pbm->io_space.flags = IORESOURCE_IO;
        pbm->mem_space.end = pbm->mem_space.start + PSYCHO_MEMSPACE_SIZE;
        pbm->mem_space.flags = IORESOURCE_MEM;
-       pbm_register_toplevel_resources(p, pbm);
 
        pbm->parent = p;
        pbm->prom_node = dp;
        pbm->name = dp->full_name;
 
+       pbm_register_toplevel_resources(p, pbm);
+
        printk("%s: PSYCHO PCI Bus Module ver[%x:%x]\n",
               pbm->name,
               pbm->chip_version, pbm->chip_revision);