Date: Wed, 10 Jun 2009 01:02:38 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193874 - head/sys/kern Message-ID: <200906100102.n5A12cQW089235@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Jun 10 01:02:38 2009 New Revision: 193874 URL: http://svn.freebsd.org/changeset/base/193874 Log: We can actually remove devclass_find_driver. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c ============================================================================== --- head/sys/kern/subr_bus.c Tue Jun 9 23:38:19 2009 (r193873) +++ head/sys/kern/subr_bus.c Wed Jun 10 01:02:38 2009 (r193874) @@ -1199,27 +1199,6 @@ devclass_find_driver_internal(devclass_t } /** - * @brief Search a devclass for a driver - * - * This function searches the devclass's list of drivers and returns - * the first driver whose name is @p classname or @c NULL if there is - * no driver of that name. - * - * @param dc the devclass to search - * @param classname the driver name to search for - */ -static kobj_class_t -devclass_find_driver(devclass_t dc, const char *classname) -{ - driverlink_t dl; - - dl = devclass_find_driver_internal(dc, classname); - if (dl) - return (dl->driver); - return (NULL); -} - -/** * @brief Return the name of the devclass */ const char *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906100102.n5A12cQW089235>