diff options
Diffstat (limited to 'arch/mips/pci/pci-xlp.c')
-rw-r--r-- | arch/mips/pci/pci-xlp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/pci/pci-xlp.c b/arch/mips/pci/pci-xlp.c index 222d804e77d1..da7a37a55981 100644 --- a/arch/mips/pci/pci-xlp.c +++ b/arch/mips/pci/pci-xlp.c | |||
@@ -235,7 +235,6 @@ static inline void xlp_config_pci_bswap(int node, int link) {} | |||
235 | 235 | ||
236 | static int __init pcibios_init(void) | 236 | static int __init pcibios_init(void) |
237 | { | 237 | { |
238 | struct nlm_soc_info *nodep; | ||
239 | uint64_t pciebase; | 238 | uint64_t pciebase; |
240 | int link, n; | 239 | int link, n; |
241 | u32 reg; | 240 | u32 reg; |
@@ -249,9 +248,8 @@ static int __init pcibios_init(void) | |||
249 | ioport_resource.end = ~0; | 248 | ioport_resource.end = ~0; |
250 | 249 | ||
251 | for (n = 0; n < NLM_NR_NODES; n++) { | 250 | for (n = 0; n < NLM_NR_NODES; n++) { |
252 | nodep = nlm_get_node(n); | 251 | if (!nlm_node_present(n)) |
253 | if (!nodep->coremask) | 252 | continue; |
254 | continue; /* node does not exist */ | ||
255 | 253 | ||
256 | for (link = 0; link < PCIE_NLINKS; link++) { | 254 | for (link = 0; link < PCIE_NLINKS; link++) { |
257 | pciebase = nlm_get_pcie_base(n, link); | 255 | pciebase = nlm_get_pcie_base(n, link); |