From 15be5e5e11df9efffd3887c5e223ab10773839e5 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Mon, 27 Jul 2020 13:54:26 +0900 Subject: [PATCH] drivers/video: Store device operations table Fix a bug which the device operation structure is not stored in video_initialize(). --- drivers/video/video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/video.c b/drivers/video/video.c index 17988449f7..36f964421a 100644 --- a/drivers/video/video.c +++ b/drivers/video/video.c @@ -1499,6 +1499,8 @@ int video_initialize(FAR const char *devpath, video_handler = video_register(devpath); + g_video_devops = devops; + is_initialized = true; return OK; @@ -1513,6 +1515,8 @@ int video_uninitialize(void) video_unregister(video_handler); + g_video_devops = NULL; + is_initialized = false; return OK;