remove define TGL_GET_VERSION 16/208516/3
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 25 Jun 2019 10:49:34 +0000 (19:49 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 10 Jul 2019 04:13:23 +0000 (04:13 +0000)
Change-Id: I858e29a92867c8406fc6b36e5bbba02b54605b6f

src/tbm_bufmgr_exynos.c

index 747208f..2da8a89 100644 (file)
@@ -201,27 +201,6 @@ const static char *STR_OPT[] = {
 
 static int _get_render_node(int is_master);
 
-#ifdef TGL_GET_VERSION
-static inline int
-_tgl_get_version(int fd)
-{
-       struct tgl_ver_data data;
-       int err;
-       char buf[STRERR_BUFSIZE];
-
-       err = ioctl(fd, TGL_IOCTL_GET_VERSION, &data);
-       if (err) {
-               TBM_ERR("error(%s) %s:%d\n",
-                       strerror_r(errno, buf, STRERR_BUFSIZE));
-               return 0;
-       }
-
-       TBM_DBG("tgl version is (%u, %u).\n", data.major, data.minor);
-
-       return 1;
-}
-#endif
-
 static inline int
 _tgl_init(int fd, unsigned int key)
 {
@@ -566,14 +545,6 @@ _bufmgr_init_cache_state(tbm_bufmgr_exynos bufmgr_exynos)
                }
        }
 
-#ifdef TGL_GET_VERSION
-       if (!_tgl_get_version(bufmgr_exynos->tgl_fd)) {
-               TBM_ERR("fail to get tgl_version. tgl init failed.\n");
-               close(bufmgr_exynos->tgl_fd);
-               return 0;
-       }
-#endif
-
        if (!_tgl_init(bufmgr_exynos->tgl_fd, GLOBAL_KEY)) {
                TBM_ERR("fail to initialize the tgl\n");
                close(bufmgr_exynos->tgl_fd);