Skip to content

Commit

Permalink
ARM: S3C64XX: DMA: 'size' argument of dma_pool_create
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jassi authored and Ben Dooks committed Sep 15, 2009
1 parent 23c94b4 commit 3ea61e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c64xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3ea61e4

Please sign in to comment.