pci: assign device during pci config cmd write

Issue #1216
This commit is contained in:
Alexander Boettcher
2015-05-05 18:43:58 +02:00
committed by Christian Helmuth
parent 3eed3ad329
commit 2ceecd44f9
8 changed files with 62 additions and 76 deletions

View File

@ -313,9 +313,6 @@ int pci_register_driver(struct pci_driver *drv)
Pci_driver *pci_drv = 0;
try {
/* trigger that the device get be assigned to the usb driver */
pci.config_extended(cap);
/* probe device */
pci_drv = new (env()->heap()) Pci_driver(drv, cap, id);
pci.on_destruction(Pci::Connection::KEEP_OPEN);

View File

@ -295,9 +295,6 @@ extern "C" int pci_register_driver(struct pci_driver *drv)
try {
pci_device_cap = cap;
/* trigger that the device get be assigned to the wifi driver */
pci()->config_extended(cap);
/* probe device */
pci_drv = new (env()->heap()) Pci_driver(drv, cap, id);
pci()->on_destruction(Pci::Connection::KEEP_OPEN);