ARM: S3C64XX: DMA: 'size' argument of dma_pool_create
authorJassi <jassi.brar@samsung.com>
Tue, 15 Sep 2009 10:01:19 +0000 (19:01 +0900)
committerBen Dooks <ben-linux@fluff.org>
Tue, 15 Sep 2009 23:50:06 +0000 (00:50 +0100)
Provide actual minimum(struct pl080s_lli) size of block to
dma_pool_create call, instead of hardcoded 32 bytes.

Signed-Off-by: Jassi <jassi.brar@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/dma.c

index 67aa93dbb69e16c6b213bb9d2cd222c1c61e2385..b26d2a242d9e2326ed2bf18a82f7fcd2bfb7d712 100644 (file)
@@ -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;