diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 21:32:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 21:32:15 +0000 |
commit | 39fb4aef3d058a6d6726a689f365d2c8a3333178 (patch) | |
tree | 3b153134583d6d3d0d078ae9b3fb771be33195be /sys/dev/cx/if_cx.c | |
parent | ad925439e08646e188eb1c0e0be355f0685c8739 (diff) | |
download | FreeBSD-src-39fb4aef3d058a6d6726a689f365d2c8a3333178.zip FreeBSD-src-39fb4aef3d058a6d6726a689f365d2c8a3333178.tar.gz |
Device megapatch 5/6:
Remove the unused second argument from udev2dev().
Convert all remaining users of makedev() to use udev2dev(). The
semantic difference is that udev2dev() will only locate a pre-existing
dev_t, it will not line makedev() create a new one.
Apart from the tiny well controlled windown in D_PSEUDO drivers,
there should no longer be any "anonymous" dev_t's in the system
now, only dev_t's created with make_dev() and make_dev_alias()
Diffstat (limited to 'sys/dev/cx/if_cx.c')
-rw-r--r-- | sys/dev/cx/if_cx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index 842348e..9a3acc2 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -3105,7 +3105,7 @@ static int cx_modevent (module_t mod, int type, void *unused) static int load_count = 0; struct cdevsw *cdsw; - dev = makedev (CDEV_MAJOR, 0); + dev = udev2dev (makeudev(CDEV_MAJOR, 0)); switch (type) { case MOD_LOAD: if ((cdsw = devsw (dev)) && cdsw->d_maj == CDEV_MAJOR) { |