diff options
author | imp <imp@FreeBSD.org> | 2007-06-13 05:37:59 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-06-13 05:37:59 +0000 |
commit | 6e9a4786383ec10525b313b3ce1907287577859e (patch) | |
tree | fa8f5e72ce0493223798a63d12b2964b602aaa17 /sys/dev/usb/uhub.c | |
parent | ca1df96c1a9664f95b9ecb36fac419db0b745b4c (diff) | |
download | FreeBSD-src-6e9a4786383ec10525b313b3ce1907287577859e.zip FreeBSD-src-6e9a4786383ec10525b313b3ce1907287577859e.tar.gz |
Expand USB_DETACH, USB_ATTACH and USB_MATCH inline. No functional
change, and MD5's appear to be the same.
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index 79749d5..769dd6f 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -136,7 +136,8 @@ static driver_t uhubroot_driver = { sizeof(struct uhub_softc) }; -USB_MATCH(uhub) +static int +uhub_match(device_t self) { USB_MATCH_START(uhub, uaa); usb_device_descriptor_t *dd = usbd_get_device_descriptor(uaa->device); @@ -534,7 +535,8 @@ uhub_explore(usbd_device_handle dev) * Called from process context when the hub is gone. * Detach all devices on active ports. */ -USB_DETACH(uhub) +static int +uhub_detach(device_t self) { USB_DETACH_START(uhub, sc); struct usbd_hub *hub = sc->sc_hub->hub; |