diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-01-18 21:18:51 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-01-18 21:18:51 +0000 |
commit | 35d5fee7aa515cf92391bd533a8b4565c49b919c (patch) | |
tree | 1439c526c24fdf3a4820b9cffac345f001eeac0a /sys/dev/usb/controller/usb_controller.c | |
parent | 460d7b088e1fcacc12a5985f400dd2b4e41a65fd (diff) | |
download | FreeBSD-src-35d5fee7aa515cf92391bd533a8b4565c49b919c.zip FreeBSD-src-35d5fee7aa515cf92391bd533a8b4565c49b919c.tar.gz |
Make USB packet filtering code optional.
Approved by: thompsa (mentor)
Diffstat (limited to 'sys/dev/usb/controller/usb_controller.c')
-rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index 867f8c5..408390c 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -206,8 +206,9 @@ usb_detach(device_t dev) usb_proc_free(&bus->control_xfer_proc); +#if USB_HAVE_PF usbpf_detach(bus); - +#endif return (0); } @@ -436,8 +437,9 @@ usb_attach_sub(device_t dev, struct usb_bus *bus) usb_devclass_ptr = devclass_find("usbus"); mtx_unlock(&Giant); +#if USB_HAVE_PF usbpf_attach(bus); - +#endif /* Initialise USB process messages */ bus->explore_msg[0].hdr.pm_callback = &usb_bus_explore; bus->explore_msg[0].bus = bus; |