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:
parent
cec8009ca1
commit
ead1785e1e
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user