Author: br
Date: Thu Nov 17 15:12:03 2016
New Revision: 308755
URL: https://svnweb.freebsd.org/changeset/base/308755

Log:
  Declare dwc_otg_detach as non-static (same as dwc_otg_attach),
  so it can be called from fdt-glue drivers.
  
  Submitted by: kan
  Sponsored by: DARPA, AFRL

Modified:
  head/sys/dev/usb/controller/dwc_otg_fdt.c
  head/sys/dev/usb/controller/dwc_otg_fdt.h

Modified: head/sys/dev/usb/controller/dwc_otg_fdt.c
==============================================================================
--- head/sys/dev/usb/controller/dwc_otg_fdt.c   Thu Nov 17 15:10:52 2016        
(r308754)
+++ head/sys/dev/usb/controller/dwc_otg_fdt.c   Thu Nov 17 15:12:03 2016        
(r308755)
@@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$");
 #include <dev/usb/controller/dwc_otg_fdt.h>
 
 static device_probe_t dwc_otg_probe;
-static device_detach_t dwc_otg_detach;
 
 static int
 dwc_otg_probe(device_t dev)
@@ -159,7 +158,7 @@ error:
        return (ENXIO);
 }
 
-static int
+int
 dwc_otg_detach(device_t dev)
 {
        struct dwc_otg_fdt_softc *sc = device_get_softc(dev);

Modified: head/sys/dev/usb/controller/dwc_otg_fdt.h
==============================================================================
--- head/sys/dev/usb/controller/dwc_otg_fdt.h   Thu Nov 17 15:10:52 2016        
(r308754)
+++ head/sys/dev/usb/controller/dwc_otg_fdt.h   Thu Nov 17 15:12:03 2016        
(r308755)
@@ -35,5 +35,6 @@ struct dwc_otg_fdt_softc {
 extern driver_t dwc_otg_driver;
 
 device_attach_t dwc_otg_attach;
+device_attach_t dwc_otg_detach;
 
 #endif
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to