drivers/video: Store device operations table
Fix a bug which the device operation structure is not stored in video_initialize().
This commit is contained in:
parent
3befe16f52
commit
15be5e5e11
|
@ -1499,6 +1499,8 @@ int video_initialize(FAR const char *devpath,
|
||||||
|
|
||||||
video_handler = video_register(devpath);
|
video_handler = video_register(devpath);
|
||||||
|
|
||||||
|
g_video_devops = devops;
|
||||||
|
|
||||||
is_initialized = true;
|
is_initialized = true;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -1513,6 +1515,8 @@ int video_uninitialize(void)
|
||||||
|
|
||||||
video_unregister(video_handler);
|
video_unregister(video_handler);
|
||||||
|
|
||||||
|
g_video_devops = NULL;
|
||||||
|
|
||||||
is_initialized = false;
|
is_initialized = false;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|
Loading…
Reference in New Issue