drm/sprd: fix always gem creation of imported dma-buf 45/61145/4
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 11 Feb 2016 02:01:03 +0000 (11:01 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 17 Mar 2016 23:56:28 +0000 (16:56 -0700)
commitcb8d39c70e6e3245c00bf3c8d9adce447fff619d
treeb1a253438c77c1412ee90512bf8a347d51e37a14
parent7f0f50c4a517fed5afe2df9058bac816a9ac2857
drm/sprd: fix always gem creation of imported dma-buf

The sprd_prime_import() creates gem object always even though there is
existing gem object that refers memory of imported dma-buf. This patch
will make to reuse existing gem object on this case.

Change-Id: I4aa31bd2a41a511774b9e1aaf150ddbf45728c22
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/drm/sprd/sprd_drm_gem.c
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion.h