PCI: designware: Remove pci_assign_unassigned_resources() from dw_pcie_host_init()
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Jul 2014 17:52:40 +0000 (19:52 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Sep 2014 20:58:48 +0000 (14:58 -0600)
The pci_common_init_dev() call right before will already handle the device
resource allocation, so this call was a no-op.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Mohit Kumar <mohit.kumar@st.com>
drivers/pci/host/pcie-designware.c

index 66462835fc02721b87ce8e86ad109b78af163453..538bbf310e44761359aabca75e271ecee7966e22 100644 (file)
@@ -581,7 +581,6 @@ int __init dw_pcie_host_init(struct pcie_port *pp)
        dw_pci.private_data = (void **)&pp;
 
        pci_common_init_dev(pp->dev, &dw_pci);
-       pci_assign_unassigned_resources();
 #ifdef CONFIG_PCI_DOMAINS
        dw_pci.domain++;
 #endif