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:
Michal Meloun 2020-12-05 10:55:09 +00:00
parent 0f9a385a3a
commit cc2eaa04bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368364

View File

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