media: tsmux: remov the old ion interface
authorSeungpyo Hong <sp.hong@samsung.com>
Fri, 30 Mar 2018 04:14:39 +0000 (13:14 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:11 +0000 (14:39 +0900)
Change-Id: I5f4977fcaf45a1be739d4c06fea811a113d51d95
Signed-off-by: Seungpyo Hong <sp.hong@samsung.com>
drivers/media/platform/exynos/tsmux/tsmux_dev.c
drivers/media/platform/exynos/tsmux/tsmux_dev.h

index bcd2d87a5af7f14f38923f73458a5129c36a5f9a..cdb40c6365ebe3aa73075030530bbe6e69ef971f 100644 (file)
@@ -473,7 +473,6 @@ int tsmux_ioctl_m2m_unmap_buf(struct tsmux_context *ctx,
 {
        int ret = 0;
        struct tsmux_device *tsmux_dev;
-       struct ion_client *client;
 
        print_tsmux(TSMUX_M2M, "%s++\n", __func__);
 
@@ -481,7 +480,6 @@ int tsmux_ioctl_m2m_unmap_buf(struct tsmux_context *ctx,
                return -ENOMEM;
 
        tsmux_dev = ctx->tsmux_dev;
-       client = tsmux_dev->tsmux_ion_client;
 
        print_tsmux(TSMUX_M2M, "unmap m2m in_buf\n");
 
@@ -1416,9 +1414,7 @@ static int tsmux_probe(struct platform_device *pdev)
 
        spin_lock_init(&tsmux_dev->device_spinlock);
 
-       tsmux_dev->tsmux_ion_client = exynos_ion_client_create("tsmux");
-       if (tsmux_dev->tsmux_ion_client == NULL)
-               print_tsmux(TSMUX_ERR, "exynos_ion_client_create failed\n");
+       dma_set_mask(&pdev->dev, DMA_BIT_MASK(36));
 
        tsmux_dev->ctx_cnt = 0;
 
@@ -1460,9 +1456,6 @@ static int tsmux_remove(struct platform_device *pdev)
 
        iovmm_deactivate(tsmux_dev->dev);
 
-       if (tsmux_dev->tsmux_ion_client)
-               ion_client_destroy(tsmux_dev->tsmux_ion_client);
-
        free_irq(tsmux_dev->irq, tsmux_dev);
        iounmap(tsmux_dev->regs_base);
 
index 175cd0953705a7d2db1ad402fc9c8ff899ab8adf..10e7e7c0988341057d5a5ca8c57be4bd8ab465b0 100644 (file)
@@ -20,8 +20,7 @@
 #include <linux/miscdevice.h>
 #include <linux/types.h>
 #include <linux/dma-buf.h>
-#include <linux/ion.h>
-#include <linux/exynos_ion.h>
+#include <linux/ion_exynos.h>
 #include <linux/wait.h>
 #include <media/exynos_tsmux.h>
 
@@ -37,7 +36,6 @@ enum otf_buf_state {
 };
 
 struct tsmux_buffer_info {
-       struct ion_handle *handle;
        struct dma_buf *dmabuf;
        struct dma_buf_attachment *dmabuf_att;
        dma_addr_t dma_addr;
@@ -59,7 +57,6 @@ struct tsmux_device {
        int ctx_cur;
 
        struct tsmux_context *ctx[TSMUX_MAX_CONTEXTS_NUM];
-       struct ion_client *tsmux_ion_client;
 };
 
 struct tsmux_context {