diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-05-07 23:49:01 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-05-08 16:41:40 -0700 |
commit | 6c108f1299754877bb5f73ccac5621eb603b97eb (patch) | |
tree | 6f4e2f0d2dfdb143780106c3c6942f5e3946c509 /arch/sparc64/kernel/pci.c | |
parent | e9870c4c0aef94580e28be11a1c6246dcabbe528 (diff) | |
download | op-kernel-dev-6c108f1299754877bb5f73ccac5621eb603b97eb.zip op-kernel-dev-6c108f1299754877bb5f73ccac5621eb603b97eb.tar.gz |
[SPARC64]: Move index info pci_pbm_info.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci.c')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 4d30d57..b8a48db 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c @@ -50,8 +50,8 @@ asmlinkage int sys_pciconfig_write(unsigned long bus, unsigned long dfn, /* List of all PCI controllers found in the system. */ struct pci_pbm_info *pci_pbm_root = NULL; -/* Each PCI controller found gets a unique index. */ -int pci_num_controllers = 0; +/* Each PBM found gets a unique index. */ +int pci_num_pbms = 0; volatile int pci_poke_in_progress; volatile int pci_poke_cpu = -1; @@ -1077,11 +1077,7 @@ int pci_domain_nr(struct pci_bus *pbus) if (pbm == NULL || pbm->parent == NULL) { ret = -ENXIO; } else { - struct pci_controller_info *p = pbm->parent; - - ret = p->index; - ret = ((ret << 1) + - ((pbm == &pbm->parent->pbm_B) ? 1 : 0)); + ret = pbm->index; } return ret; |