diff --git a/drivers/video/fb.c b/drivers/video/fb.c index 0f5fd0d8571..85107e305b8 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -1084,8 +1084,6 @@ int fb_register(int display, int plane) goto errout_with_fb; } - fb->vtable->priv = fb; - /* Initialize the frame buffer instance. */ DEBUGASSERT(fb->vtable->getvideoinfo != NULL); @@ -1151,6 +1149,8 @@ int fb_register(int display, int plane) goto errout_with_fb; } + fb->vtable->priv = fb; + return OK; errout_with_fb: