diff options
author | phk <phk@FreeBSD.org> | 1999-09-12 20:40:29 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-12 20:40:29 +0000 |
commit | 12c22f65a5bb7ee59be3065b48b191434c23cc08 (patch) | |
tree | 50edd0d506d2d3925ab4a05f30c1482db2b31b6f /sys/contrib | |
parent | 78e49a27cc1f5572ecffaca16688aebe823504a6 (diff) | |
download | FreeBSD-src-12c22f65a5bb7ee59be3065b48b191434c23cc08.zip FreeBSD-src-12c22f65a5bb7ee59be3065b48b191434c23cc08.tar.gz |
Bite the bullet and allocate the devsw entry at compile time.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/dev/fla/fla.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index b550781..83b0edc 100644 --- a/sys/contrib/dev/fla/fla.c +++ b/sys/contrib/dev/fla/fla.c @@ -78,6 +78,7 @@ static struct cdevsw fla_cdevsw = { /* maxio */ 0, /* bmaj */ BDEV_MAJOR }; +static struct cdevsw fladisk_cdevsw; void * doc2k_malloc(int bytes) @@ -339,7 +340,7 @@ flaattach (device_t dev) DEVSTAT_NO_ORDERED_TAGS, DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, 0x190); - sc->dev = disk_create(unit, &sc->disk, 0, &fla_cdevsw); + sc->dev = disk_create(unit, &sc->disk, 0, &fla_cdevsw, &fladisk_cdevsw); sc->dev->si_drv1 = sc; sc->unit = unit; |