summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index b6f87e47c6..004df1e604 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -96,7 +96,8 @@ int fb_enable(struct fb_info *info)
if (ret)
return ret;
- info->fbops->fb_enable(info);
+ if (info->fbops->fb_enable)
+ info->fbops->fb_enable(info);
info->enabled = true;
@@ -108,7 +109,8 @@ int fb_disable(struct fb_info *info)
if (!info->enabled)
return 0;
- info->fbops->fb_disable(info);
+ if (info->fbops->fb_disable)
+ info->fbops->fb_disable(info);
fb_release_shadowfb(info);