summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-18 08:09:44 +0000
committered <ed@FreeBSD.org>2011-10-18 08:09:44 +0000
commit832b15d2892554b2c0a2cee0eed9ac42c333606b (patch)
treeeb0defb246740f5e1409bc9224c1136f3e8ddbe3 /sys
parent9ae319147303a93acadebefb29731814c8bad338 (diff)
downloadFreeBSD-src-832b15d2892554b2c0a2cee0eed9ac42c333606b.zip
FreeBSD-src-832b15d2892554b2c0a2cee0eed9ac42c333606b.tar.gz
Get rid of D_PSEUDO.
It seems the D_PSEUDO flag was meant to allow make_dev() to return NULL. Nowadays we have a different interface for that; make_dev_p(). There's no need to keep it there. While there, remove an unneeded D_NEEDMINOR from the gpio driver. Discussed with: gonzo@ (gpio)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/gpio/gpioc.c3
-rw-r--r--sys/dev/ksyms/ksyms.c2
-rw-r--r--sys/dev/vkbd/vkbd.c2
-rw-r--r--sys/net/if_tap.c2
-rw-r--r--sys/net/if_tun.c2
-rw-r--r--sys/security/audit/audit_pipe.c2
-rw-r--r--sys/sys/conf.h1
7 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c
index 6a4c0c9..d48743b 100644
--- a/sys/dev/gpio/gpioc.c
+++ b/sys/dev/gpio/gpioc.c
@@ -61,9 +61,6 @@ static struct cdevsw gpioc_cdevsw = {
.d_version = D_VERSION,
.d_ioctl = gpioc_ioctl,
.d_name = "gpioc",
-#if __FreeBSD_version >= 800039
- .d_flags = D_PSEUDO | D_NEEDMINOR
-#endif
};
struct gpioc_softc {
diff --git a/sys/dev/ksyms/ksyms.c b/sys/dev/ksyms/ksyms.c
index 38e71a3..49298bc 100644
--- a/sys/dev/ksyms/ksyms.c
+++ b/sys/dev/ksyms/ksyms.c
@@ -74,7 +74,7 @@ static d_mmap_t ksyms_mmap;
static struct cdevsw ksyms_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_TRACKCLOSE,
+ .d_flags = D_TRACKCLOSE,
.d_open = ksyms_open,
.d_close = ksyms_close,
.d_read = ksyms_read,
diff --git a/sys/dev/vkbd/vkbd.c b/sys/dev/vkbd/vkbd.c
index 42fca40..81418f2 100644
--- a/sys/dev/vkbd/vkbd.c
+++ b/sys/dev/vkbd/vkbd.c
@@ -158,7 +158,7 @@ static int vkbd_data_read(vkbd_state_t *, int);
static struct cdevsw vkbd_dev_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_NEEDGIANT | D_NEEDMINOR,
+ .d_flags = D_NEEDGIANT | D_NEEDMINOR,
.d_open = vkbd_dev_open,
.d_close = vkbd_dev_close,
.d_read = vkbd_dev_read,
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index 08c669a..4ae5a3d 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -132,7 +132,7 @@ static struct filterops tap_write_filterops = {
static struct cdevsw tap_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_NEEDMINOR,
+ .d_flags = D_NEEDMINOR,
.d_open = tapopen,
.d_close = tapclose,
.d_read = tapread,
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index c532884..57a11f9 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -165,7 +165,7 @@ static struct filterops tun_write_filterops = {
static struct cdevsw tun_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_NEEDMINOR,
+ .d_flags = D_NEEDMINOR,
.d_open = tunopen,
.d_close = tunclose,
.d_read = tunread,
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c
index a953eb0..dc0df3e 100644
--- a/sys/security/audit/audit_pipe.c
+++ b/sys/security/audit/audit_pipe.c
@@ -231,7 +231,7 @@ static d_kqfilter_t audit_pipe_kqfilter;
static struct cdevsw audit_pipe_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_PSEUDO | D_NEEDMINOR,
+ .d_flags = D_NEEDMINOR,
.d_open = audit_pipe_open,
.d_close = audit_pipe_close,
.d_read = audit_pipe_read,
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index ab3ea53..7dfa82e 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -168,7 +168,6 @@ typedef int dumper_t(
*/
#define D_TRACKCLOSE 0x00080000 /* track all closes */
#define D_MMAP_ANON 0x00100000 /* special treatment in vm_mmap.c */
-#define D_PSEUDO 0x00200000 /* make_dev() can return NULL */
#define D_NEEDGIANT 0x00400000 /* driver want Giant */
#define D_NEEDMINOR 0x00800000 /* driver uses clone_create() */
OpenPOWER on IntegriCloud