diff mbox

[1/2,media] sh_mobile_ceu_camera: Do not call vb2's mem_ops directly

Message ID 1300109904-3991-1-git-send-email-pawel@osciak.com (mailing list archive)
State RFC
Headers show

Commit Message

Pawel Osciak March 14, 2011, 1:38 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c
index 61f3701..3fe54bf 100644
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@ -302,9 +302,7 @@  static int sh_mobile_ceu_capture(struct sh_mobile_ceu_dev *pcdev)
 		bottom2	= CDBCR;
 	}
 
-	/* mem_ops->cookie must not be NULL */
-	phys_addr_top = (dma_addr_t)icd->vb2_vidq.mem_ops->cookie(pcdev->
-						active->planes[0].mem_priv);
+	phys_addr_top = vb2_dma_contig_plane_paddr(pcdev->active, 0);
 
 	ceu_write(pcdev, top1, phys_addr_top);
 	if (V4L2_FIELD_NONE != pcdev->field) {