diff options
author | phk <phk@FreeBSD.org> | 2001-11-04 09:09:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-11-04 09:09:41 +0000 |
commit | 6d85b02e40d1c18573f9c4488b65e74c21a8badd (patch) | |
tree | 6e017836441e2617a17cb30527b09f6cf2804366 /sys/dev/dgb | |
parent | 77936adc994aa3dd3daceb3bf3c7690c1153847e (diff) | |
download | FreeBSD-src-6d85b02e40d1c18573f9c4488b65e74c21a8badd.zip FreeBSD-src-6d85b02e40d1c18573f9c4488b65e74c21a8badd.tar.gz |
Don't call cdevsw_add().
Diffstat (limited to 'sys/dev/dgb')
-rw-r--r-- | sys/dev/dgb/dgb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index fa27d31..04663fd 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -438,10 +438,7 @@ dgbprobe(dev) int i, v; u_long win_size; /* size of vizible memory window */ int unit=dev->id_unit; - static int once; - if (!once++) - cdevsw_add(&dgb_cdevsw); sc->unit=dev->id_unit; sc->port=dev->id_iobase; |