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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to