[media] m2m-deinterlace: Fix error print during probe
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 23 Aug 2016 13:39:39 +0000 (10:39 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 25 Aug 2016 12:47:12 +0000 (09:47 -0300)
v4l2_err() can not be used for printing error for missing interleaved
support in DMA as this point the pcdev->v4l2_dev is not valid.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/m2m-deinterlace.c

index 0fcb5c7..5a5dec3 100644 (file)
@@ -1016,7 +1016,7 @@ static int deinterlace_probe(struct platform_device *pdev)
                return -ENODEV;
 
        if (!dma_has_cap(DMA_INTERLEAVE, pcdev->dma_chan->device->cap_mask)) {
-               v4l2_err(&pcdev->v4l2_dev, "DMA does not support INTERLEAVE\n");
+               dev_err(&pdev->dev, "DMA does not support INTERLEAVE\n");
                goto rel_dma;
        }