summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-04-24 10:58:23 +0200
committerHelge Deller <deller@gmx.de>2023-04-24 11:48:33 +0200
commit55caa9a7aca0e7685ebb9f5082156e89cae36c4a (patch)
tree2982cb912b9e58e51a4a84f11a04488533f65ed5 /drivers/video/fbdev
parentb3a7a9ab65ae2f2626c7222fb79cdd433f8c5252 (diff)
downloadlinux-stable-55caa9a7aca0e7685ebb9f5082156e89cae36c4a.tar.gz
linux-stable-55caa9a7aca0e7685ebb9f5082156e89cae36c4a.tar.bz2
linux-stable-55caa9a7aca0e7685ebb9f5082156e89cae36c4a.zip
fbdev: 68328fb: 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/68328fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/68328fb.c b/drivers/video/fbdev/68328fb.c
index 41df61b37a18..3ccf46f8ffd0 100644
--- a/drivers/video/fbdev/68328fb.c
+++ b/drivers/video/fbdev/68328fb.c
@@ -94,6 +94,7 @@ static int mc68x328fb_pan_display(struct fb_var_screeninfo *var,
static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
static const struct fb_ops mc68x328fb_ops = {
+ .owner = THIS_MODULE,
.fb_check_var = mc68x328fb_check_var,
.fb_set_par = mc68x328fb_set_par,
.fb_setcolreg = mc68x328fb_setcolreg,