[SPARC64]: Kill PBM ranges software state.
It is only used in one spot and we can just fetch the OF property right there. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1136,7 +1136,6 @@ static void psycho_pbm_init(struct pci_controller_info *p,
|
||||
unsigned int *busrange;
|
||||
struct property *prop;
|
||||
struct pci_pbm_info *pbm;
|
||||
int len;
|
||||
|
||||
if (is_pbm_a) {
|
||||
pbm = &p->pbm_A;
|
||||
@@ -1166,15 +1165,6 @@ static void psycho_pbm_init(struct pci_controller_info *p,
|
||||
pbm->name,
|
||||
pbm->chip_version, pbm->chip_revision);
|
||||
|
||||
prop = of_find_property(dp, "ranges", &len);
|
||||
if (prop) {
|
||||
pbm->pbm_ranges = prop->value;
|
||||
pbm->num_pbm_ranges =
|
||||
(len / sizeof(struct linux_prom_pci_ranges));
|
||||
} else {
|
||||
pbm->num_pbm_ranges = 0;
|
||||
}
|
||||
|
||||
prop = of_find_property(dp, "bus-range", NULL);
|
||||
busrange = prop->value;
|
||||
pbm->pci_first_busno = busrange[0];
|
||||
|
Reference in New Issue
Block a user