{
int ret = 0;
struct tsmux_device *tsmux_dev;
- struct ion_client *client;
print_tsmux(TSMUX_M2M, "%s++\n", __func__);
return -ENOMEM;
tsmux_dev = ctx->tsmux_dev;
- client = tsmux_dev->tsmux_ion_client;
print_tsmux(TSMUX_M2M, "unmap m2m in_buf\n");
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;
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);
#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>
};
struct tsmux_buffer_info {
- struct ion_handle *handle;
struct dma_buf *dmabuf;
struct dma_buf_attachment *dmabuf_att;
dma_addr_t dma_addr;
int ctx_cur;
struct tsmux_context *ctx[TSMUX_MAX_CONTEXTS_NUM];
- struct ion_client *tsmux_ion_client;
};
struct tsmux_context {