uterm: video_fbdev: remove display_use()
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 19:56:43 +0000 (21:56 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 23 Jun 2012 19:56:43 +0000 (21:56 +0200)
fbdev does not support OpenGL contexts so there is no need to implement
this function. Instead, we will provide blitting support later.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_video_fbdev.c

index 4321d1a..e3323c7 100644 (file)
@@ -268,16 +268,6 @@ void *fbdev_display_map(struct uterm_display *disp)
        return disp->fbdev.map;
 }
 
-static int display_use(struct uterm_display *disp)
-{
-       if (!disp->video || !video_is_awake(disp->video))
-               return -EINVAL;
-       if (!(disp->flags & DISPLAY_ONLINE))
-               return -EINVAL;
-
-       return 0;
-}
-
 static int display_swap(struct uterm_display *disp)
 {
        struct fb_var_screeninfo *vinfo;
@@ -391,7 +381,7 @@ const struct display_ops fbdev_display_ops = {
        .activate = display_activate,
        .deactivate = display_deactivate,
        .set_dpms = display_set_dpms,
-       .use = display_use,
+       .use = NULL,
        .swap = display_swap,
 };