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:
parent
acbef47c5e
commit
f7b305bc0a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user