diff options
-rw-r--r-- | sys/dev/ic/nvme.c | 7 | ||||
-rw-r--r-- | sys/dev/video/fbdev.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 142003c..729abe8 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -346,6 +346,12 @@ nvme_dev_write(struct device *dev, struct sio_txn *sio) return nvme_dev_rw(dev, sio, true); } +static int +nvme_dev_open(struct device *dev) +{ + return 0; +} + /* * Get identify data for namespace * @@ -409,6 +415,7 @@ nvme_init_ns(struct nvme_state *state, uint16_t nsid) dev = device_alloc(); dev->read = nvme_dev_read; dev->write = nvme_dev_write; + dev->open = nvme_dev_open; dev->blocksize = ns->lba_bsize; dev->mmap = NULL; ns->dev_id = device_create(dev, state->major, nsid); diff --git a/sys/dev/video/fbdev.c b/sys/dev/video/fbdev.c index af020a1..d9b680f 100644 --- a/sys/dev/video/fbdev.c +++ b/sys/dev/video/fbdev.c @@ -83,6 +83,12 @@ fbdev_mmap(struct device *dev, off_t off, vm_prot_t prot) return base + off; } +static int +fbdev_open(struct device *dev) +{ + return 0; +} + struct fbdev fbdev_get_front(void) { @@ -104,6 +110,7 @@ fbdev_init(void) dev->write = NULL; dev->mmap = fbdev_mmap; dev->ioctl = fbdev_ioctl; + dev->open = fbdev_open; device_create(dev, device_alloc_major(), 1); devfs_add_dev("fb", dev); |