From owner-svn-src-all@FreeBSD.ORG Thu Nov 25 22:56:27 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68154106564A; Thu, 25 Nov 2010 22:56:27 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3BAC78FC12; Thu, 25 Nov 2010 22:56:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oAPMuRLa020182; Thu, 25 Nov 2010 22:56:27 GMT (envelope-from weongyo@svn.freebsd.org) Received: (from weongyo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oAPMuR11020179; Thu, 25 Nov 2010 22:56:27 GMT (envelope-from weongyo@svn.freebsd.org) Message-Id: <201011252256.oAPMuR11020179@svn.freebsd.org> From: Weongyo Jeong Date: Thu, 25 Nov 2010 22:56:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r215846 - in head/sys/dev/usb: . controller X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 22:56:27 -0000 Author: weongyo Date: Thu Nov 25 22:56:26 2010 New Revision: 215846 URL: http://svn.freebsd.org/changeset/base/215846 Log: Removes a unused function `usb_bus_find'. Modified: head/sys/dev/usb/controller/usb_controller.c head/sys/dev/usb/usb_controller.h Modified: head/sys/dev/usb/controller/usb_controller.c ============================================================================== --- head/sys/dev/usb/controller/usb_controller.c Thu Nov 25 22:19:40 2010 (r215845) +++ head/sys/dev/usb/controller/usb_controller.c Thu Nov 25 22:56:26 2010 (r215846) @@ -602,29 +602,3 @@ usb_bus_mem_free_all(struct usb_bus *bus 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); -} Modified: head/sys/dev/usb/usb_controller.h ============================================================================== --- head/sys/dev/usb/usb_controller.h Thu Nov 25 22:19:40 2010 (r215845) +++ head/sys/dev/usb/usb_controller.h Thu Nov 25 22:56:26 2010 (r215846) @@ -221,6 +221,5 @@ void usb_bus_mem_free_all(struct usb_bus 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_ */