OSDN Git Service

PCI: designware: Use pci_scan_root_bus() for simplicity
authorYijing Wang <wangyijing@huawei.com>
Tue, 28 Apr 2015 07:01:37 +0000 (15:01 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 May 2015 16:40:36 +0000 (11:40 -0500)
commit528d4bce1078f90352df909e8bcfd457d23797b2
tree4c4e0190c89fde0b991d7f9c5309e18c95853bdc
parent915ad861b6dae6b5afa0cd8d0593916ba1ca224f
PCI: designware: Use pci_scan_root_bus() for simplicity

After b97ea289cf6a ("PCI: Assign resources before drivers claim devices
(pci_scan_root_bus())"), pci_scan_root_bus() no longer adds the devices, so
it is equivalent to:

  pci_create_root_bus()
  pci_scan_child_bus()

Use pci_scan_root_bus() to simplify the code.

[bhelgaas: changelog]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
CC: Mohit Kumar <mohit.kumar@st.com>
drivers/pci/host/pcie-designware.c