From owner-p4-projects@FreeBSD.ORG Fri Sep 15 14:17:46 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 729FA16A494; Fri, 15 Sep 2006 14:17:46 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3619216A415 for ; Fri, 15 Sep 2006 14:17:46 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 148A243DB0 for ; Fri, 15 Sep 2006 14:17:29 +0000 (GMT) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8FEHTLq098276 for ; Fri, 15 Sep 2006 14:17:29 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8FEHSFx098273 for perforce@freebsd.org; Fri, 15 Sep 2006 14:17:28 GMT (envelope-from hselasky@FreeBSD.org) Date: Fri, 15 Sep 2006 14:17:28 GMT Message-Id: <200609151417.k8FEHSFx098273@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 106148 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: Fri, 15 Sep 2006 14:17:46 -0000 http://perforce.freebsd.org/chv.cgi?CH=106148 Change 106148 by hselasky@hselasky_mini_itx on 2006/09/15 14:17:12 Initialize all driver_t structures by record. Bugfix: Some of the modem drivers did not use the "ucom_devclass". Make sure that all modem drivers use this devclass. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/if_aue.c#9 edit .. //depot/projects/usb/src/sys/dev/usb/if_axe.c#8 edit .. //depot/projects/usb/src/sys/dev/usb/if_cdce.c#7 edit .. //depot/projects/usb/src/sys/dev/usb/if_cue.c#8 edit .. //depot/projects/usb/src/sys/dev/usb/if_kue.c#9 edit .. //depot/projects/usb/src/sys/dev/usb/if_rue.c#7 edit .. //depot/projects/usb/src/sys/dev/usb/if_udav.c#7 edit .. //depot/projects/usb/src/sys/dev/usb/ucycom.c#6 edit .. //depot/projects/usb/src/sys/dev/usb/ufm.c#6 edit .. //depot/projects/usb/src/sys/dev/usb/ufoma.c#6 edit .. //depot/projects/usb/src/sys/dev/usb/uftdi.c#7 edit .. //depot/projects/usb/src/sys/dev/usb/umct.c#6 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/if_aue.c#9 (text+ko) ==== @@ -375,9 +375,9 @@ }; static driver_t aue_driver = { - "aue", - aue_methods, - sizeof(struct aue_softc) + .name = "aue", + .methods = aue_methods, + .size = sizeof(struct aue_softc) }; static devclass_t aue_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_axe.c#8 (text+ko) ==== @@ -308,9 +308,9 @@ }; static driver_t axe_driver = { - "axe", - axe_methods, - sizeof(struct axe_softc) + .name = "axe", + .methods = axe_methods, + .size = sizeof(struct axe_softc), }; static devclass_t axe_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_cdce.c#7 (text+ko) ==== @@ -165,9 +165,9 @@ }; static driver_t cdce_driver = { - "cdce", - cdce_methods, - sizeof(struct cdce_softc) + .name = "cdce", + .methods = cdce_methods, + .size = sizeof(struct cdce_softc), }; static devclass_t cdce_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_cue.c#8 (text+ko) ==== @@ -228,9 +228,9 @@ }; static driver_t cue_driver = { - "cue", - cue_methods, - sizeof(struct cue_softc) + .name = "cue", + .methods = cue_methods, + .size = sizeof(struct cue_softc), }; static devclass_t cue_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_kue.c#9 (text+ko) ==== @@ -248,9 +248,9 @@ }; static driver_t kue_driver = { - "kue", - kue_methods, - sizeof(struct kue_softc) + .name = "kue", + .methods = kue_methods, + .size = sizeof(struct kue_softc), }; static devclass_t kue_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_rue.c#7 (text+ko) ==== @@ -317,9 +317,9 @@ }; static driver_t rue_driver = { - "rue", - rue_methods, - sizeof(struct rue_softc) + .name = "rue", + .methods = rue_methods, + .size = sizeof(struct rue_softc), }; static devclass_t rue_devclass; ==== //depot/projects/usb/src/sys/dev/usb/if_udav.c#7 (text+ko) ==== @@ -266,9 +266,9 @@ }; static driver_t udav_driver = { - "udav", - udav_methods, - sizeof(struct udav_softc) + .name = "udav", + .methods = udav_methods, + .size = sizeof(struct udav_softc), }; static devclass_t udav_devclass; ==== //depot/projects/usb/src/sys/dev/usb/ucycom.c#6 (text+ko) ==== @@ -193,14 +193,12 @@ }; static driver_t ucycom_driver = { - "ucycom", - ucycom_methods, - sizeof(struct ucycom_softc), + .name = "ucom", + .methods = ucycom_methods, + .size = sizeof(struct ucycom_softc), }; -static devclass_t ucycom_devclass; - -DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, usbd_driver_load, 0); +DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucom_devclass, usbd_driver_load, 0); MODULE_VERSION(ucycom, 1); MODULE_DEPEND(ucycom, usb, 1, 1, 1); ==== //depot/projects/usb/src/sys/dev/usb/ufm.c#6 (text+ko) ==== @@ -143,9 +143,9 @@ }; static driver_t ufm_driver = { - "ufm", - ufm_methods, - sizeof(struct ufm_softc) + .name = "ufm", + .methods = ufm_methods, + .size = sizeof(struct ufm_softc), }; MODULE_DEPEND(ufm, usb, 1, 1, 1); ==== //depot/projects/usb/src/sys/dev/usb/ufoma.c#6 (text+ko) ==== @@ -400,13 +400,11 @@ }; static driver_t ufoma_driver = { - "ucom", - ufoma_methods, - sizeof(struct ufoma_softc) + .name = "ucom", + .methods = ufoma_methods, + .size = sizeof(struct ufoma_softc), }; -static devclass_t ucom_devclass; - DRIVER_MODULE(ufoma, uhub, ufoma_driver, ucom_devclass, usbd_driver_load, 0); MODULE_DEPEND(ufoma, usb, 1, 1, 1); MODULE_DEPEND(ufoma, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER); ==== //depot/projects/usb/src/sys/dev/usb/uftdi.c#7 (text+ko) ==== @@ -280,9 +280,9 @@ }; static driver_t uftdi_driver = { - "ucom", - uftdi_methods, - sizeof (struct uftdi_softc) + .name = "ucom", + .methods = uftdi_methods, + .size = sizeof (struct uftdi_softc), }; DRIVER_MODULE(uftdi, uhub, uftdi_driver, ucom_devclass, usbd_driver_load, 0); ==== //depot/projects/usb/src/sys/dev/usb/umct.c#6 (text+ko) ==== @@ -294,9 +294,9 @@ }; static driver_t umct_driver = { - "ucom", - umct_methods, - sizeof(struct umct_softc) + .name = "ucom", + .methods = umct_methods, + .size = sizeof(struct umct_softc), }; DRIVER_MODULE(umct, uhub, umct_driver, ucom_devclass, usbd_driver_load, 0);