From: Lucas Stach <l.stach@pengutronix.de>
Date: Wed, 23 Jul 2014 17:52:40 +0000 (+0200)
Subject: PCI: designware: Remove pci_assign_unassigned_resources() from dw_pcie_host_init()
X-Git-Tag: firefly_0821_release~176^2~3101^2~2^2~9
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ddebc4103e6544bd31f0c97e55491387717a124;p=firefly-linux-kernel-4.4.55.git

PCI: designware: Remove pci_assign_unassigned_resources() from dw_pcie_host_init()

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>
---

diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c
index 66462835fc02..538bbf310e44 100644
--- a/drivers/pci/host/pcie-designware.c
+++ b/drivers/pci/host/pcie-designware.c
@@ -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