summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Meloun <mmel@FreeBSD.org>2020-12-17 12:58:05 +0000
committerMichal Meloun <mmel@FreeBSD.org>2020-12-17 12:58:05 +0000
commitdfaca73fd43474f0f4067d037a9342b174190f63 (patch)
tree58bf8a93c905dbb9cbe8a39c669c7609f3270b19
parentb8246c521fa60bf7f5854d20a3f6dca1f10b06c3 (diff)
downloadsrc-test2-dfaca73fd43474f0f4067d037a9342b174190f63.tar.gz
src-test2-dfaca73fd43474f0f4067d037a9342b174190f63.zip
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.
Notes
Notes: svn path=/stable/12/; revision=368715
-rw-r--r--sys/dev/pci/pci_dw.c2
1 files changed, 1 insertions, 1 deletions
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);