diff options
author | joe <joe@FreeBSD.org> | 2003-08-25 22:01:06 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2003-08-25 22:01:06 +0000 |
commit | ee20548ddcf1e21f7f0b709491e1f0a94b3c672a (patch) | |
tree | 2daa8f810432217314c2b26acafce673a8f8ee55 | |
parent | 3e80957e2b5bec9c7d086833c410d9b9813bb8b8 (diff) | |
download | FreeBSD-src-ee20548ddcf1e21f7f0b709491e1f0a94b3c672a.zip FreeBSD-src-ee20548ddcf1e21f7f0b709491e1f0a94b3c672a.tar.gz |
Fix the cdevsw compatibility for -stable.
-rw-r--r-- | sys/dev/usb/ucom.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ufm.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ugen.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/uhid.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ulpt.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ums.c | 3 | ||||
-rw-r--r-- | sys/dev/usb/urio.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/usb.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/uscanner.c | 2 |
9 files changed, 8 insertions, 11 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 0ec2140..b398661 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -140,7 +140,7 @@ static struct cdevsw ucom_cdevsw = { .d_maj = UCOM_CDEV_MAJOR, .d_flags = D_TTY, #if __FreeBSD_version < 500014 - /* bmaj */ -1, + .d_bmaj = -1, #endif .d_kqfilter = ttykqfilter, }; diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c index 217eb37..89d7501 100644 --- a/sys/dev/usb/ufm.c +++ b/sys/dev/usb/ufm.c @@ -98,7 +98,7 @@ Static struct cdevsw ufm_cdevsw = { .d_name = "ufm", .d_maj = UFM_CDEV_MAJOR, #if (__FreeBSD_version < 500014) - -1 + .d_bmaj = -1 #endif }; #endif /*defined(__FreeBSD__)*/ diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c index 5a62c7f..b056d2f 100644 --- a/sys/dev/usb/ugen.c +++ b/sys/dev/usb/ugen.c @@ -155,7 +155,7 @@ Static struct cdevsw ugen_cdevsw = { .d_name = "ugen", .d_maj = UGEN_CDEV_MAJOR, #if __FreeBSD_version < 500014 - /* bmaj */ -1 + .d_bmaj -1 #endif }; #endif diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index 591c5a7..57f8e29 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -164,7 +164,7 @@ Static struct cdevsw uhid_cdevsw = { .d_name = "uhid", .d_maj = UHID_CDEV_MAJOR, #if __FreeBSD_version < 500014 - /* bmaj */ -1 + .d_bmaj -1 #endif }; #endif diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c index 7e1ce89..46a452c 100644 --- a/sys/dev/usb/ulpt.c +++ b/sys/dev/usb/ulpt.c @@ -156,7 +156,7 @@ Static struct cdevsw ulpt_cdevsw = { .d_name = "ulpt", .d_maj = ULPT_CDEV_MAJOR, #if __FreeBSD_version < 500014 - /* bmaj */ -1 + .d_bmaj -1 #endif }; #endif diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 95283f2..32e9101 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -158,9 +158,6 @@ Static struct cdevsw ums_cdevsw = { .d_poll = ums_poll, .d_name = "ums", .d_maj = UMS_CDEV_MAJOR, -#if __FreeBSD_version < 500014 - /* bmaj */ -1 -#endif }; USB_DECLARE_DRIVER(ums); diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index 25c0856..6614a33 100644 --- a/sys/dev/usb/urio.c +++ b/sys/dev/usb/urio.c @@ -126,7 +126,7 @@ Static struct cdevsw urio_cdevsw = { .d_name = "urio", .d_maj = URIO_CDEV_MAJOR, #if __FreeBSD_version < 500014 - -1 + .d_bmaj = -1 #endif }; #define RIO_UE_GET_DIR(p) ((UE_GET_DIR(p) == UE_DIR_IN) ? RIO_IN :\ diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 5812b35..b7a6d0a 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -151,7 +151,7 @@ struct cdevsw usb_cdevsw = { .d_name = "usb", .d_maj = USB_CDEV_MAJOR, #if __FreeBSD_version < 500014 - /* bmaj */ -1 + .d_bmaj = -1 #endif }; #endif diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c index cff0e43..8615d9a 100644 --- a/sys/dev/usb/uscanner.c +++ b/sys/dev/usb/uscanner.c @@ -267,7 +267,7 @@ Static struct cdevsw uscanner_cdevsw = { .d_name = "uscanner", .d_maj = USCANNER_CDEV_MAJOR, #if __FreeBSD_version < 500014 - /* bmaj */ -1 + .d_bmaj -1 #endif }; #endif |