diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 19:42:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 19:42:58 +0000 |
commit | df397dedeab80f98300da9e5999d17a57c01b19f (patch) | |
tree | c4705f5f800de96d25d8356b2711c664dabcd41e /sys/netgraph | |
parent | ab77c85da2c48c6a8b74ed533d4b739b5afeb405 (diff) | |
download | FreeBSD-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/netgraph')
-rw-r--r-- | sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | 7 | ||||
-rw-r--r-- | sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c | 7 | ||||
-rw-r--r-- | sys/netgraph/ng_device.c | 2 |
3 files changed, 0 insertions, 16 deletions
diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c index dd5ef65..e353caf 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -225,12 +225,6 @@ Static d_poll_t ubt_poll; Static void ubt_create_device_nodes (ubt_softc_p); Static void ubt_destroy_device_nodes (ubt_softc_p); -#if __FreeBSD_version < 500104 -#define CDEV_MAJOR 222 -#else -#define CDEV_MAJOR MAJOR_AUTO -#endif - Static struct cdevsw ubt_cdevsw = { .d_open = ubt_open, .d_close = ubt_close, @@ -239,7 +233,6 @@ Static struct cdevsw ubt_cdevsw = { .d_ioctl = ubt_ioctl, .d_poll = ubt_poll, .d_name = "ubt", - .d_maj = CDEV_MAJOR, }; /* diff --git a/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c b/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c index 8e4eeb2..44e763f 100644 --- a/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c +++ b/sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c @@ -91,12 +91,6 @@ Static d_write_t ubtbcmfw_write; Static d_ioctl_t ubtbcmfw_ioctl; Static d_poll_t ubtbcmfw_poll; -#if __FreeBSD_version < 500104 -#define CDEV_MAJOR 223 -#else -#define CDEV_MAJOR MAJOR_AUTO -#endif - Static struct cdevsw ubtbcmfw_cdevsw = { .d_open = ubtbcmfw_open, .d_close = ubtbcmfw_close, @@ -105,7 +99,6 @@ Static struct cdevsw ubtbcmfw_cdevsw = { .d_ioctl = ubtbcmfw_ioctl, .d_poll = ubtbcmfw_poll, .d_name = "ubtbcmfw", - .d_maj = CDEV_MAJOR, }; /* diff --git a/sys/netgraph/ng_device.c b/sys/netgraph/ng_device.c index b05c515..ae3237f 100644 --- a/sys/netgraph/ng_device.c +++ b/sys/netgraph/ng_device.c @@ -112,7 +112,6 @@ static d_write_t ngdwrite; static d_ioctl_t ngdioctl; static d_poll_t ngdpoll; -#define NGD_CDEV_MAJOR 20 static struct cdevsw ngd_cdevsw = { .d_open = ngdopen, .d_close = ngdclose, @@ -121,7 +120,6 @@ static struct cdevsw ngd_cdevsw = { .d_ioctl = ngdioctl, .d_poll = ngdpoll, .d_name = "ngd", - .d_maj = NGD_CDEV_MAJOR, }; /* |