diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-08-06 15:08:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-18 15:57:15 -0700 |
commit | 01d79e9b6afd15c3d2f34b39a9a6a08b45440d01 (patch) | |
tree | b31165b46574e77a672ceed87780a3213db316fd | |
parent | 70ed0929fc4f324db83fc04fea607818289839f0 (diff) |
staging: vboxvideo: Call fb_deferred_io_cleanup() on cleanup
On driver cleanup we need to call fb_deferred_io_cleanup() if build
with CONFIG_FB_DEFERRED_IO set.
Suggested-by: Michael Thayer <michael.thayer@oracle.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vboxvideo/vbox_fb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/vboxvideo/vbox_fb.c b/drivers/staging/vboxvideo/vbox_fb.c index 3c09aa468924..56e3908b28a5 100644 --- a/drivers/staging/vboxvideo/vbox_fb.c +++ b/drivers/staging/vboxvideo/vbox_fb.c @@ -342,6 +342,11 @@ void vbox_fbdev_fini(struct drm_device *dev) struct vbox_fbdev *fbdev = vbox->fbdev; struct vbox_framebuffer *afb = &fbdev->afb; +#ifdef CONFIG_FB_DEFERRED_IO + if (fbdev->helper.fbdev && fbdev->helper.fbdev->fbdefio) + fb_deferred_io_cleanup(fbdev->helper.fbdev); +#endif + drm_fb_helper_unregister_fbi(&fbdev->helper); if (afb->obj) { |