diff options
-rw-r--r-- | drivers/video/fb_defio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index 4835bdc4e9f1..e6dafeddfa5b 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c | |||
@@ -60,6 +60,10 @@ int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, int datasync) | |||
60 | { | 60 | { |
61 | struct fb_info *info = file->private_data; | 61 | struct fb_info *info = file->private_data; |
62 | 62 | ||
63 | /* Skip if deferred io is complied-in but disabled on this fbdev */ | ||
64 | if (!info->fbdefio) | ||
65 | return 0; | ||
66 | |||
63 | /* Kill off the delayed work */ | 67 | /* Kill off the delayed work */ |
64 | cancel_rearming_delayed_work(&info->deferred_work); | 68 | cancel_rearming_delayed_work(&info->deferred_work); |
65 | 69 | ||