From owner-p4-projects@FreeBSD.ORG Sun Dec 30 13:27:51 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F403E16A41B; Sun, 30 Dec 2007 13:27:50 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9EDF16A418 for ; Sun, 30 Dec 2007 13:27:50 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A8ED213C457 for ; Sun, 30 Dec 2007 13:27:50 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBUDRoJ0064415 for ; Sun, 30 Dec 2007 13:27:50 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBUDRo8n064412 for perforce@freebsd.org; Sun, 30 Dec 2007 13:27:50 GMT (envelope-from hselasky@FreeBSD.org) Date: Sun, 30 Dec 2007 13:27:50 GMT Message-Id: <200712301327.lBUDRo8n064412@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 132093 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2007 13:27:51 -0000 http://perforce.freebsd.org/chv.cgi?CH=132093 Change 132093 by hselasky@hselasky_laptop001 on 2007/12/30 13:27:44 Get device methods right. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/uchcom.c#3 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#3 (text+ko) ==== @@ -222,9 +222,9 @@ struct uchcom_endpoints *); static void uchcom_close_intr_pipe(struct uchcom_softc *); -static int uchcom_match(device_t ); -static int uchcom_attach(device_t ); -static int uchcom_detach(device_t ); +static device_probe_t uchcom_probe; +static device_attach_t uchcom_attach; +static device_detach_t uchcom_detach; struct ucom_callback uchcom_callback = { .ucom_get_status = uchcom_get_status, @@ -244,7 +244,7 @@ * driver entry points */ -static int uchcom_match(device_t self) +static int uchcom_probe(device_t self) { struct usb_attach_arg *uaa = device_get_ivars(self); @@ -1018,7 +1018,7 @@ static device_method_t uchcom_methods[] = { /* Device interface */ - DEVMETHOD(device_probe, uchcom_match), + DEVMETHOD(device_probe, uchcom_probe), DEVMETHOD(device_attach, uchcom_attach), DEVMETHOD(device_detach, uchcom_detach),