PCI: endpoint: Clean up hardware description for BARs
[linux-2.6-microblaze.git] / drivers / pci / controller / dwc / pci-layerscape-ep.c
index 2e39849..1f6ee14 100644 (file)
@@ -250,7 +250,10 @@ static int __init ls_pcie_ep_probe(struct platform_device *pdev)
        pci->dev = dev;
        pci->ops = pcie->drvdata->dw_pcie_ops;
 
-       ls_epc->bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4);
+       ls_epc->bar[BAR_2].only_64bit = true;
+       ls_epc->bar[BAR_3].type = BAR_RESERVED;
+       ls_epc->bar[BAR_4].only_64bit = true;
+       ls_epc->bar[BAR_5].type = BAR_RESERVED;
        ls_epc->linkup_notifier = true;
 
        pcie->pci = pci;