diff options
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 4d30d57c4619..b8a48db3d82d 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, | |||
| 50 | /* List of all PCI controllers found in the system. */ | 50 | /* List of all PCI controllers found in the system. */ |
| 51 | struct pci_pbm_info *pci_pbm_root = NULL; | 51 | struct pci_pbm_info *pci_pbm_root = NULL; |
| 52 | 52 | ||
| 53 | /* Each PCI controller found gets a unique index. */ | 53 | /* Each PBM found gets a unique index. */ |
| 54 | int pci_num_controllers = 0; | 54 | int pci_num_pbms = 0; |
| 55 | 55 | ||
| 56 | volatile int pci_poke_in_progress; | 56 | volatile int pci_poke_in_progress; |
| 57 | volatile int pci_poke_cpu = -1; | 57 | volatile int pci_poke_cpu = -1; |
| @@ -1077,11 +1077,7 @@ int pci_domain_nr(struct pci_bus *pbus) | |||
| 1077 | if (pbm == NULL || pbm->parent == NULL) { | 1077 | if (pbm == NULL || pbm->parent == NULL) { |
| 1078 | ret = -ENXIO; | 1078 | ret = -ENXIO; |
| 1079 | } else { | 1079 | } else { |
| 1080 | struct pci_controller_info *p = pbm->parent; | 1080 | ret = pbm->index; |
| 1081 | |||
| 1082 | ret = p->index; | ||
| 1083 | ret = ((ret << 1) + | ||
| 1084 | ((pbm == &pbm->parent->pbm_B) ? 1 : 0)); | ||
| 1085 | } | 1081 | } |
| 1086 | 1082 | ||
| 1087 | return ret; | 1083 | return ret; |
