File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 10
10
* the License, or (at your option) any later version.
11
11
*/
12
12
13
+ #include <drm/drm_atomic.h>
13
14
#include <drm/drm_atomic_helper.h>
14
15
#include <drm/drm_fb_helper.h>
15
16
#include <drm/drm_fb_cma_helper.h>
@@ -26,6 +27,10 @@ static const struct drm_mode_config_funcs sun4i_de_mode_config_funcs = {
26
27
.fb_create = drm_gem_fb_create ,
27
28
};
28
29
30
+ static struct drm_mode_config_helper_funcs sun4i_de_mode_config_helpers = {
31
+ .atomic_commit_tail = drm_atomic_helper_commit_tail_rpm ,
32
+ };
33
+
29
34
int sun4i_framebuffer_init (struct drm_device * drm )
30
35
{
31
36
drm_mode_config_reset (drm );
@@ -34,6 +39,7 @@ int sun4i_framebuffer_init(struct drm_device *drm)
34
39
drm -> mode_config .max_height = 8192 ;
35
40
36
41
drm -> mode_config .funcs = & sun4i_de_mode_config_funcs ;
42
+ drm -> mode_config .helper_private = & sun4i_de_mode_config_helpers ;
37
43
38
44
return drm_fb_cma_fbdev_init (drm , 32 , 0 );
39
45
}
You can’t perform that action at this time.
0 commit comments