svn commit: r368715 - stable/12/sys/dev/pci

Michal Meloun mmel at FreeBSD.org
Thu Dec 17 12:58:06 UTC 2020


Author: mmel
Date: Thu Dec 17 12:58:05 2020
New Revision: 368715
URL: https://svnweb.freebsd.org/changeset/base/368715

Log:
  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.

Modified:
  stable/12/sys/dev/pci/pci_dw.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/pci/pci_dw.c
==============================================================================
--- stable/12/sys/dev/pci/pci_dw.c	Thu Dec 17 12:41:47 2020	(r368714)
+++ stable/12/sys/dev/pci/pci_dw.c	Thu Dec 17 12:58:05 2020	(r368715)
@@ -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);


More information about the svn-src-stable mailing list