瀏覽代碼

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: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Jiang Liu 12 年之前
父節點
當前提交
c13e396ebf
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      arch/unicore32/kernel/pci.c

+ 0 - 5
arch/unicore32/kernel/pci.c

@@ -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);