Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c13e396e authored by Jiang Liu's avatar Jiang Liu Committed by Bjorn Helgaas
Browse files

unicore32/PCI: Remove redundant call of pci_bus_add_devices()



pci_scan_bus() has called pci_bus_add_devices() already, so remove the
redundant call of pci_bus_add_devices().  subsys_init() callbacks will be
invoked before device_init() callbacks, so it should be safe to remove the
redundant calls.

Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent d9e6ba5f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -277,11 +277,6 @@ static int __init pci_common_init(void)
		pci_bus_assign_resources(puv3_bus);
	}

	/*
	 * Tell drivers about devices found.
	 */
	pci_bus_add_devices(puv3_bus);

	return 0;
}
subsys_initcall(pci_common_init);