OSDN Git Service

minigbm: Consolidate format info in new struct planar_layout
[android-x86/external-minigbm.git] / udl.c
diff --git a/udl.c b/udl.c
index dc3c4eb..12dc967 100644 (file)
--- a/udl.c
+++ b/udl.c
@@ -12,16 +12,13 @@ static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMA
 
 static int udl_init(struct driver *drv)
 {
-       int ret;
-       ret = drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
-                                  &LINEAR_METADATA, BO_USE_RENDER_MASK);
-       if (ret)
-               return ret;
+       drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
+                            &LINEAR_METADATA, BO_USE_RENDER_MASK);
 
        return drv_modify_linear_combinations(drv);
 }
 
-struct backend backend_udl = {
+const struct backend backend_udl = {
        .name = "udl",
        .init = udl_init,
        .bo_create = drv_dumb_bo_create,