media: mem2mem: Remove unused v4l2_m2m_ops .lock/.unlock

Commit f1a81afc98 ("[media] m2m: fix bad unlock balance")
removed the last use of v4l2_m2m_ops.lock and
v4l2_m2m_ops.unlock hooks. They are not actually
used anymore. Remove them.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
这个提交包含在:
Ezequiel Garcia
2018-06-14 11:34:03 -04:00
提交者 Mauro Carvalho Chehab
父节点 1b97e5275b
当前提交 d7e913cc58
修改 8 个文件,包含 6 行新增133 行删除

查看文件

@@ -181,20 +181,6 @@ static void deinterlace_job_abort(void *priv)
v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->m2m_ctx);
}
static void deinterlace_lock(void *priv)
{
struct deinterlace_ctx *ctx = priv;
struct deinterlace_dev *pcdev = ctx->dev;
mutex_lock(&pcdev->dev_mutex);
}
static void deinterlace_unlock(void *priv)
{
struct deinterlace_ctx *ctx = priv;
struct deinterlace_dev *pcdev = ctx->dev;
mutex_unlock(&pcdev->dev_mutex);
}
static void dma_callback(void *data)
{
struct deinterlace_ctx *curr_ctx = data;
@@ -956,9 +942,9 @@ static __poll_t deinterlace_poll(struct file *file,
struct deinterlace_ctx *ctx = file->private_data;
__poll_t ret;
deinterlace_lock(ctx);
mutex_lock(&ctx->dev->dev_mutex);
ret = v4l2_m2m_poll(file, ctx->m2m_ctx, wait);
deinterlace_unlock(ctx);
mutex_unlock(&ctx->dev->dev_mutex);
return ret;
}
@@ -992,8 +978,6 @@ static const struct v4l2_m2m_ops m2m_ops = {
.device_run = deinterlace_device_run,
.job_ready = deinterlace_job_ready,
.job_abort = deinterlace_job_abort,
.lock = deinterlace_lock,
.unlock = deinterlace_unlock,
};
static int deinterlace_probe(struct platform_device *pdev)