diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-12 20:40:29 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-09-12 20:40:29 +0000 |
commit | 2016e4e9062be92016e450c2cf25703584519bff (patch) | |
tree | e5e29644869c0117a86e7f317a4e43dd463e847b /sys/contrib/dev/fla/fla.c | |
parent | 03a7efc23434121a36ef935e1e41ab883dd6c642 (diff) | |
download | src-2016e4e9062be92016e450c2cf25703584519bff.tar.gz src-2016e4e9062be92016e450c2cf25703584519bff.zip |
Bite the bullet and allocate the devsw entry at compile time.
Notes
Notes:
svn path=/head/; revision=51215
Diffstat (limited to 'sys/contrib/dev/fla/fla.c')
-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 b550781ce63f..83b0edc59dc2 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; |