summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-04-24 10:58:25 +0200
committerHelge Deller <deller@gmx.de>2023-04-24 11:48:33 +0200
commitb04ab8c13a73c10a97126fbe7076b2fbf632ba03 (patch)
treeaf6ecc32a13582b9ca54b691a3904e30b1c5799a /drivers/video/fbdev
parentfbdev: ps3fb: Init owner field of struct fb_ops (diff)
downloadlinux-b04ab8c13a73c10a97126fbe7076b2fbf632ba03.tar.xz
linux-b04ab8c13a73c10a97126fbe7076b2fbf632ba03.zip
fbdev: vfb: Init owner field of struct fb_ops
Initialize the owner field of struct fb_ops. Required to prevent module unloading while the driver is in use. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/vfb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/fbdev/vfb.c
index 1a2514d564fc..a94573997d15 100644
--- a/drivers/video/fbdev/vfb.c
+++ b/drivers/video/fbdev/vfb.c
@@ -79,6 +79,7 @@ static int vfb_mmap(struct fb_info *info,
struct vm_area_struct *vma);
static const struct fb_ops vfb_ops = {
+ .owner = THIS_MODULE,
.fb_read = fb_sys_read,
.fb_write = fb_sys_write,
.fb_check_var = vfb_check_var,