summaryrefslogtreecommitdiff
path: root/sys/dev/video
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-19 23:06:59 -0400
committerIan Moffett <ian@osmora.org>2024-05-19 23:06:59 -0400
commit2da0120af12cda00194522d04b50edf2f2166382 (patch)
tree83a6355b356ddb10d5a652be01e6590d097fe0ad /sys/dev/video
parent673753e8befcfbb575380ed0d23fc6741b4e50a0 (diff)
kernel: dev: Define stub open hooks
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/video')
-rw-r--r--sys/dev/video/fbdev.c7
1 files changed, 7 insertions, 0 deletions
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);