summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s3c-camif/camif-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-02-15 14:25:09 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 14:42:09 -0300
commitc781e4a565a6791d3b516d64d9693804ef4a49b8 (patch)
treefcc8d83243fc98407ebf6937d8ea7ef89c5e2e6b /drivers/media/platform/s3c-camif/camif-core.c
parent8e9bca3a260ccacbdc3c852d6dd8f21801b82266 (diff)
downloadlinux-c781e4a565a6791d3b516d64d9693804ef4a49b8.tar.gz
linux-c781e4a565a6791d3b516d64d9693804ef4a49b8.tar.bz2
linux-c781e4a565a6791d3b516d64d9693804ef4a49b8.zip
[media] media/platform: convert drivers to use the new vb2_queue dev field
Stop using alloc_ctx and just fill in the device pointer. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/s3c-camif/camif-core.c')
-rw-r--r--drivers/media/platform/s3c-camif/camif-core.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c
index af237af204e2..ec4001970313 100644
--- a/drivers/media/platform/s3c-camif/camif-core.c
+++ b/drivers/media/platform/s3c-camif/camif-core.c
@@ -474,16 +474,9 @@ static int s3c_camif_probe(struct platform_device *pdev)
if (ret < 0)
goto err_pm;
- /* Initialize contiguous memory allocator */
- camif->alloc_ctx = vb2_dma_contig_init_ctx(dev);
- if (IS_ERR(camif->alloc_ctx)) {
- ret = PTR_ERR(camif->alloc_ctx);
- goto err_alloc;
- }
-
ret = camif_media_dev_init(camif);
if (ret < 0)
- goto err_mdev;
+ goto err_alloc;
ret = camif_register_sensor(camif);
if (ret < 0)
@@ -517,8 +510,6 @@ err_sens:
media_device_unregister(&camif->media_dev);
media_device_cleanup(&camif->media_dev);
camif_unregister_media_entities(camif);
-err_mdev:
- vb2_dma_contig_cleanup_ctx(camif->alloc_ctx);
err_alloc:
pm_runtime_put(dev);
pm_runtime_disable(dev);