diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-31 11:29:30 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-31 11:29:30 +0000 |
| commit | 2447bec8293649f281b5f9926a7cd4097ccaf4bf (patch) | |
| tree | f7694bd7dc78280030c80d074ef35b7f539ff9ca /sys/dev/streams/streams.c | |
| parent | db453b16791eca0888057e429ec55ab2c1e14af9 (diff) | |
Notes
Diffstat (limited to 'sys/dev/streams/streams.c')
| -rw-r--r-- | sys/dev/streams/streams.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index e3790e8912b0e..e82ed9e9fe584 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -152,21 +152,14 @@ typedef struct streams_softc *sc_p; static sc_p sca[NSTREAMS]; -static void -streamsattach(void *dummy) -{ - cdevsw_add_generic(CDEV_MAJOR, CDEV_MAJOR, &streams_cdevsw); -} - static int streams_modevent(module_t mod, int type, void *unused) { switch (type) { case MOD_LOAD: - streamsattach(NULL); + cdevsw_add(&streams_cdevsw); return 0; case MOD_UNLOAD: - cdevsw[CDEV_MAJOR] = NULL; /* clean up cdev */ return 0; default: break; @@ -394,12 +387,10 @@ svr4_soo_close(struct file *fp, struct proc *p) static void streams_drvinit(void *unused) { - dev_t dev; int unit; sc_p scp = sca[unit]; - dev = makedev(CDEV_MAJOR, 0); - cdevsw_add(&dev, &streams_cdevsw, NULL); + cdevsw_add(&streams_cdevsw); for (unit = 0; unit < NSTREAMS; unit++) { /* * Allocate storage for this instance . |
