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

Michal Meloun <[email protected]> Thu, 17 Dec 2020 12:58:05 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012171258.0BHCw5WZ015037__47755.5881183193$1608209891$gmane$org@repo.freebsd.org>
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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"