video: return -EOPNOTSUPP in video_use without OpenGL

If OpenGL is not supported, we should _not_ return 0. Otherwise, there is
not convenient way to detect this scenario.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-06-24 10:31:34 +02:00
parent acbef47c5e
commit f7b305bc0a

View File

@ -297,7 +297,7 @@ static inline bool video_need_hotplug(const struct uterm_video *video)
static inline int video_do_use(struct uterm_video *video)
{
return VIDEO_CALL(video->ops->use, 0, video);
return VIDEO_CALL(video->ops->use, -EOPNOTSUPP, video);
}
static inline bool input_bit_is_set(const unsigned long *array, int bit)