From: Jonathan Corbet Date: Thu, 30 Jun 2011 20:05:28 +0000 (-0300) Subject: [media] marvell-cam: use S/G DMA by default X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=28720944d86b4d187360daa8be67dd22cb4e897b;p=openwrt%2Fstaging%2Fblogic.git [media] marvell-cam: use S/G DMA by default Scatter/gather DMA mode works nicely on this platform and is clearly the best way of doing things. Signed-off-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/marvell-ccic/mmp-driver.c b/drivers/media/video/marvell-ccic/mmp-driver.c index 7b9c48c897e5..841591556994 100644 --- a/drivers/media/video/marvell-ccic/mmp-driver.c +++ b/drivers/media/video/marvell-ccic/mmp-driver.c @@ -180,7 +180,7 @@ static int mmpcam_probe(struct platform_device *pdev) mcam->dev = &pdev->dev; mcam->use_smbus = 0; mcam->chip_id = V4L2_IDENT_ARMADA610; - mcam->buffer_mode = B_vmalloc; /* Switch to dma */ + mcam->buffer_mode = B_DMA_sg; spin_lock_init(&mcam->dev_lock); /* * Get our I/O memory.