aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/controller
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2016-11-17 15:12:03 +0000
committerRuslan Bukin <br@FreeBSD.org>2016-11-17 15:12:03 +0000
commitead1785e1e9cca686d4914cfb8dd519ab1d17677 (patch)
tree1ed79eb3fdc8b03997b514d9c1a209f185921a1f /sys/dev/usb/controller
parentcec8009ca15c0c3112e4ed4475d4deaa8d175ecf (diff)
Notes
Diffstat (limited to 'sys/dev/usb/controller')
-rw-r--r--sys/dev/usb/controller/dwc_otg_fdt.c3
-rw-r--r--sys/dev/usb/controller/dwc_otg_fdt.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/dwc_otg_fdt.c b/sys/dev/usb/controller/dwc_otg_fdt.c
index 80d3388050ff6..8cc8e754fabb2 100644
--- a/sys/dev/usb/controller/dwc_otg_fdt.c
+++ b/sys/dev/usb/controller/dwc_otg_fdt.c
@@ -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);
diff --git a/sys/dev/usb/controller/dwc_otg_fdt.h b/sys/dev/usb/controller/dwc_otg_fdt.h
index 9e01118c80d6c..634b7960b0a32 100644
--- a/sys/dev/usb/controller/dwc_otg_fdt.h
+++ b/sys/dev/usb/controller/dwc_otg_fdt.h
@@ -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