Skip to content

Commit

Permalink
fbdev: ps3fb: Init owner field of struct fb_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Zimmermann authored and Helge Deller committed Apr 24, 2023
1 parent 55caa9a commit 25ec15a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/fbdev/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ static irqreturn_t ps3fb_vsync_interrupt(int irq, void *ptr)


static const struct fb_ops ps3fb_ops = {
.owner = THIS_MODULE,
.fb_open = ps3fb_open,
.fb_release = ps3fb_release,
.fb_read = fb_sys_read,
Expand Down

0 comments on commit 25ec15a

Please sign in to comment.