svn commit: r368364 - head/sys/dev/pci

Michal Meloun mmel at FreeBSD.org
Sat Dec 5 10:55:09 UTC 2020


Author: mmel
Date: Sat Dec  5 10:55:09 2020
New Revision: 368364
URL: https://svnweb.freebsd.org/changeset/base/368364

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

Modified:
  head/sys/dev/pci/pci_dw.c

Modified: head/sys/dev/pci/pci_dw.c
==============================================================================
--- head/sys/dev/pci/pci_dw.c	Sat Dec  5 10:10:25 2020	(r368363)
+++ head/sys/dev/pci/pci_dw.c	Sat Dec  5 10:55:09 2020	(r368364)
@@ -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);


More information about the svn-src-all mailing list