Skip to content

Commit

Permalink
PCI: designware: Remove pci_assign_unassigned_resources() from dw_pci…
Browse files Browse the repository at this point in the history
…e_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>
  • Loading branch information
Lucas Stach authored and Bjorn Helgaas committed Sep 4, 2014
1 parent 92483df commit 8ddebc4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/host/pcie-designware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ddebc4

Please sign in to comment.