summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/fla/fla.c3
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;
OpenPOWER on IntegriCloud