summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ufm.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
committerphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
commitdf397dedeab80f98300da9e5999d17a57c01b19f (patch)
treec4705f5f800de96d25d8356b2711c664dabcd41e /sys/dev/usb/ufm.c
parentab77c85da2c48c6a8b74ed533d4b739b5afeb405 (diff)
downloadFreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.zip
FreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.tar.gz
Device megapatch 1/6:
Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
Diffstat (limited to 'sys/dev/usb/ufm.c')
-rw-r--r--sys/dev/usb/ufm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c
index 7fcecfd..26916f1 100644
--- a/sys/dev/usb/ufm.c
+++ b/sys/dev/usb/ufm.c
@@ -88,18 +88,11 @@ d_open_t ufmopen;
d_close_t ufmclose;
d_ioctl_t ufmioctl;
-#if __FreeBSD_version >= 500000
-#define UFM_CDEV_MAJOR MAJOR_AUTO
-#else
-#define UFM_CDEV_MAJOR 200
-#endif
-
Static struct cdevsw ufm_cdevsw = {
.d_open = ufmopen,
.d_close = ufmclose,
.d_ioctl = ufmioctl,
.d_name = "ufm",
- .d_maj = UFM_CDEV_MAJOR,
#if (__FreeBSD_version < 500014)
.d_bmaj = -1
#endif
OpenPOWER on IntegriCloud