diff options
-rw-r--r-- | samples/kfifo/dma-example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/kfifo/dma-example.c b/samples/kfifo/dma-example.c index b9482c28b41a..03433ca5bdad 100644 --- a/samples/kfifo/dma-example.c +++ b/samples/kfifo/dma-example.c | |||
@@ -45,6 +45,7 @@ static int __init example_init(void) | |||
45 | 45 | ||
46 | printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); | 46 | printk(KERN_INFO "queue len: %u\n", kfifo_len(&fifo)); |
47 | 47 | ||
48 | sg_init_table(sg, ARRAY_SIZE(sg)); | ||
48 | ret = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); | 49 | ret = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); |
49 | printk(KERN_INFO "DMA sgl entries: %d\n", ret); | 50 | printk(KERN_INFO "DMA sgl entries: %d\n", ret); |
50 | 51 | ||