[PATCH] dmaengine: pl330: add missing include of scatterlist.h

Rob Herring robherring2 at gmail.com
Mon Aug 8 15:14:26 EDT 2011


From: Rob Herring <rob.herring at calxeda.com>

scatterlist.h was getting implicitly included and now is not which
causes this compile error:

drivers/dma/pl330.c: In function ‘pl330_prep_slave_sg’:
drivers/dma/pl330.c:603:2: error: implicit declaration of function
‘for_each_sg’

Signed-off-by: Rob Herring <rob.herring at calxeda.com>
Cc: Jassi Brar <jassisinghbrar at gmail.com>
Cc: Vinod Koul <vkoul at infradead.org>
---
 drivers/dma/pl330.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 00eee59..4e2ccde 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 #include <linux/dmaengine.h>
 #include <linux/interrupt.h>
+#include <linux/scatterlist.h>
 #include <linux/amba/bus.h>
 #include <linux/amba/pl330.h>
 
-- 
1.7.4.1




More information about the linux-arm-kernel mailing list