Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ea61e49 authored by Jassi's avatar Jassi Committed by Ben Dooks
Browse files

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: default avatarJassi <jassi.brar@samsung.com>

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 23c94b47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;