powerpc/powernv: Fix condition to remove M64
The M64 resource should be removed if we don't have hook to initialize it, or (not and) fail to do that. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
1665c4a892
commit
9e9e893521
1 changed files with 2 additions and 2 deletions
|
@ -2000,8 +2000,8 @@ static void __init pnv_pci_init_ioda_phb(struct device_node *np,
|
|||
ioda_eeh_phb_reset(hose, OPAL_DEASSERT_RESET);
|
||||
}
|
||||
|
||||
/* Configure M64 window */
|
||||
if (phb->init_m64 && phb->init_m64(phb))
|
||||
/* Remove M64 resource if we can't configure it successfully */
|
||||
if (!phb->init_m64 || phb->init_m64(phb))
|
||||
hose->mem_resources[1].flags = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue