video: smscufx: don't restore fb_mmap after deferred IO cleanup
authorJani Nikula <jani.nikula@intel.com>
Fri, 29 Nov 2019 10:29:33 +0000 (12:29 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 3 Dec 2019 09:11:02 +0000 (11:11 +0200)
Deferred IO now preserves the fb_ops.

Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: linux-fbdev@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/480dcc682481e6972e5648181d7e92120929ec6b.1575022735.git.jani.nikula@intel.com
drivers/video/fbdev/smscufx.c

index 0e0f5bbfc5efc75c9903a3952fe20772bcfe118c..e362d7da87fc5164dc4b446b8428c3e55a2a3cb8 100644 (file)
@@ -1170,7 +1170,6 @@ static int ufx_ops_release(struct fb_info *info, int user)
                fb_deferred_io_cleanup(info);
                kfree(info->fbdefio);
                info->fbdefio = NULL;
-               info->fbops->fb_mmap = ufx_ops_mmap;
        }
 
        pr_debug("released /dev/fb%d user=%d count=%d",