Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2016 15:12:03 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308755 - head/sys/dev/usb/controller
Message-ID:  <201611171512.uAHFC3pM072261@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611171512.uAHFC3pM072261>