From: Jassi Date: Tue, 15 Sep 2009 10:01:19 +0000 (+0900) Subject: ARM: S3C64XX: DMA: 'size' argument of dma_pool_create X-Git-Tag: upstream/snapshot3+hdmi~17017^2~1^2~14^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ea61e49223c499c705b80ea385cb4df9c08da21;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: S3C64XX: DMA: 'size' argument of dma_pool_create Provide actual minimum(struct pl080s_lli) size of block to dma_pool_create call, instead of hardcoded 32 bytes. Signed-Off-by: Jassi Signed-off-by: Ben Dooks --- diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/plat-s3c64xx/dma.c index 67aa93d..b26d2a2 100644 --- a/arch/arm/plat-s3c64xx/dma.c +++ b/arch/arm/plat-s3c64xx/dma.c @@ -697,7 +697,7 @@ static int __init s3c64xx_dma_init(void) printk(KERN_INFO "%s: Registering DMA channels\n", __func__); - dma_pool = dma_pool_create("DMA-LLI", NULL, 32, 16, 0); + dma_pool = dma_pool_create("DMA-LLI", NULL, sizeof(struct pl080s_lli), 16, 0); if (!dma_pool) { printk(KERN_ERR "%s: failed to create pool\n", __func__); return -ENOMEM;