DesignWare PCIe driver: Don't call bus_generic_attach() twice.
bus_generic_attach() should be called from the attach function of the real implementation, not from the common init function. MFC after: 1 week
This commit is contained in:
parent
0f9a385a3a
commit
cc2eaa04bb
@ -640,7 +640,7 @@ pci_dw_init(device_t dev)
|
||||
|
||||
device_add_child(dev, "pci", -1);
|
||||
|
||||
return (bus_generic_attach(dev));
|
||||
return (0);
|
||||
out:
|
||||
/* XXX Cleanup */
|
||||
return (rv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user