# \[PATCH 03/13\] video: smscufx: don't restore fb\_mmap after deferred IO cleanup

- From: Jani Nikula \<hidden\>
- Date: 2019-11-27 16:31:59 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2019/11/9175353
- Thread: https://ratatoskr.run/linux-fbdev/2019/11/9175350/t.md

```text
Deferred IO now preserves the fb_ops.

Cc: Steve Glendinning <steve.glendinning@shawell.net>
Cc: <redacted>
Signed-off-by: Jani Nikula <redacted>
---
 drivers/video/fbdev/smscufx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/video/fbdev/smscufx.c b/drivers/video/fbdev/smscufx.c
index 0e0f5bbfc5ef..e362d7da87fc 100644
--- a/drivers/video/fbdev/smscufx.c
+++ b/drivers/video/fbdev/smscufx.c
@@ -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",
-- 
2.20.1
```
