summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-11-25 22:56:26 +0000
committerweongyo <weongyo@FreeBSD.org>2010-11-25 22:56:26 +0000
commit80cf60fcbdbceb26eb752ada7bb8ef1cce75807d (patch)
treeafae054e45e2c4ac5fb076da96498f413828b816 /sys/dev/usb
parent51b4420dacee071576f22a93f289e65a21ef32fe (diff)
downloadFreeBSD-src-80cf60fcbdbceb26eb752ada7bb8ef1cce75807d.zip
FreeBSD-src-80cf60fcbdbceb26eb752ada7bb8ef1cce75807d.tar.gz
Removes a unused function `usb_bus_find'.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/controller/usb_controller.c26
-rw-r--r--sys/dev/usb/usb_controller.h1
2 files changed, 0 insertions, 27 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c
index d774d34..74ff6df 100644
--- a/sys/dev/usb/controller/usb_controller.c
+++ b/sys/dev/usb/controller/usb_controller.c
@@ -602,29 +602,3 @@ usb_bus_mem_free_all(struct usb_bus *bus, usb_bus_mem_cb_t *cb)
mtx_destroy(&bus->bus_mtx);
}
-struct usb_bus *
-usb_bus_find(const char *name)
-{
- struct usb_bus *ubus;
- devclass_t dc;
- device_t *devlist;
- int devcount, error, i;
- const char *nameunit;
-
- dc = devclass_find("usbus");
- if (dc == NULL)
- return (NULL);
- error = devclass_get_devices(dc, &devlist, &devcount);
- if (error != 0)
- return (NULL);
- for (i = 0; i < devcount; i++) {
- nameunit = device_get_nameunit(devlist[i]);
- if (!strncmp(name, nameunit, strlen(nameunit))) {
- ubus = device_get_ivars(devlist[i]);
- free(devlist, M_TEMP);
- return (ubus);
- }
- }
- free(devlist, M_TEMP);
- return (NULL);
-}
diff --git a/sys/dev/usb/usb_controller.h b/sys/dev/usb/usb_controller.h
index fb5d091..6b15dab 100644
--- a/sys/dev/usb/usb_controller.h
+++ b/sys/dev/usb/usb_controller.h
@@ -221,6 +221,5 @@ void usb_bus_mem_free_all(struct usb_bus *bus, usb_bus_mem_cb_t *cb);
uint16_t usb_isoc_time_expand(struct usb_bus *bus, uint16_t isoc_time_curr);
uint16_t usbd_fs_isoc_schedule_isoc_time_expand(struct usb_device *udev, struct usb_fs_isoc_schedule **pp_start, struct usb_fs_isoc_schedule **pp_end, uint16_t isoc_time);
uint8_t usbd_fs_isoc_schedule_alloc(struct usb_fs_isoc_schedule *fss, uint8_t *pstart, uint16_t len);
-struct usb_bus *usb_bus_find(const char *name);
#endif /* _USB_CONTROLLER_H_ */
OpenPOWER on IntegriCloud