[SPARC64]: Make sure pbm->prom_node is setup easly enough in psycho.c
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 16 Mar 2007 04:44:03 +0000 (21:44 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:55:35 +0000 (01:55 -0700)
It needs to be ready before we invoke pci_determine_mem_io_space().

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

index 154c03290d5d4e5b4dadad218ccef0c4af864a42..3725910c8b2b44afbe54b1e7dba227e609408447 100644 (file)
@@ -1107,8 +1107,6 @@ static void psycho_pbm_init(struct pci_controller_info *p,
        if (prop)
                pbm->chip_revision = *(int *) prop->value;
 
-       pci_determine_mem_io_space(pbm);
-
        pbm->parent = p;
        pbm->prom_node = dp;
        pbm->name = dp->full_name;
@@ -1117,6 +1115,8 @@ static void psycho_pbm_init(struct pci_controller_info *p,
               pbm->name,
               pbm->chip_version, pbm->chip_revision);
 
+       pci_determine_mem_io_space(pbm);
+
        prop = of_find_property(dp, "bus-range", NULL);
        busrange = prop->value;
        pbm->pci_first_busno = busrange[0];