tbm_module: remove bufmgr variable at tbm_module
[platform/core/uifw/libtbm.git] / src / tbm_module.c
index 2644f82..ae8e848 100644 (file)
@@ -345,7 +345,7 @@ err:
 /* LCOV_EXCL_STOP */
 
 tbm_module *
-tbm_module_load(tbm_bufmgr bufmgr, int fd)
+tbm_module_load(int fd)
 {
        tbm_module *module;
        struct dirent **namelist;
@@ -356,7 +356,6 @@ tbm_module_load(tbm_bufmgr bufmgr, int fd)
                TBM_ERR("fail to allocate the memory");
                return NULL;
        }
-       module->bufmgr = bufmgr;
 
        /* try to load the hal-tbm backend module */
        ret = _tbm_backend_load_hal_tbm(module);
@@ -379,7 +378,7 @@ tbm_module_load(tbm_bufmgr bufmgr, int fd)
                return module;
        }
 
-       /* load bufmgr priv from configured path */
+       /* load backend_module from configured path */
        n = scandir(BUFMGR_MODULE_DIR, &namelist, 0, alphasort);
        if (n < 0) {
                TBM_ERR("no files : %s\n", BUFMGR_MODULE_DIR);
@@ -455,8 +454,6 @@ tbm_module_unload(tbm_module *module)
                break;
        }
 
-       module->bufmgr = NULL;
-
        free(module);
 }
 
@@ -482,7 +479,7 @@ tbm_module_bufmgr_get_capabilities(tbm_module *module)
        }
 
        if (error != TBM_ERROR_NONE) {
-               TBM_ERR("fail to get capabilities of bufmgr");
+               TBM_ERR("fail to get capabilities of tbm_module_bufmgr");
                return 0;
        }