From 318d5a5b95b86e82eab0d66a7f717ddc8d1a8755 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 25 Jun 2019 19:49:34 +0900 Subject: [PATCH] remove define TGL_GET_VERSION Change-Id: I858e29a92867c8406fc6b36e5bbba02b54605b6f --- src/tbm_bufmgr_exynos.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index 747208f..2da8a89 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -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); -- 2.34.1