mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix the cdevsw compatibility for -stable.
This commit is contained in:
parent
d893d5f8dc
commit
219b479f9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119478
@ -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,
|
||||
};
|
||||
|
@ -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__)*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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 :\
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user