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
This commit is contained in:
Ruslan Bukin 2016-11-17 15:12:03 +00:00
parent cec8009ca1
commit ead1785e1e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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