From: Changyeon Lee Date: Tue, 25 Jun 2019 10:49:34 +0000 (+0900) Subject: remove define TGL_GET_VERSION X-Git-Tag: accepted/tizen/unified/20191104.115205~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F208516%2F3;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git remove define TGL_GET_VERSION Change-Id: I858e29a92867c8406fc6b36e5bbba02b54605b6f --- 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);