From dfaca73fd43474f0f4067d037a9342b174190f63 Mon Sep 17 00:00:00 2001 From: Michal Meloun Date: Thu, 17 Dec 2020 12:58:05 +0000 Subject: MFC r368364: 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. --- sys/dev/pci/pci_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/pci_dw.c b/sys/dev/pci/pci_dw.c index aa3e5d6d6d33..904e36caff20 100644 --- a/sys/dev/pci/pci_dw.c +++ b/sys/dev/pci/pci_dw.c @@ -651,7 +651,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); -- cgit v1.2.3