Merge branch 'ioat' into dmaengine
[linux-drm-fsl-dcu.git] / drivers / serial / sh-sci.c
index 309de6be8204bcc9fc880c6c9ae39884f460c8b3..8bddc70bb5864488760230c59af7f1d5cc57b8c3 100644 (file)
@@ -50,6 +50,7 @@
 #include <linux/list.h>
 #include <linux/dmaengine.h>
 #include <linux/scatterlist.h>
+#include <linux/slab.h>
 
 #ifdef CONFIG_SUPERH
 #include <asm/sh_bios.h>
@@ -1083,7 +1084,7 @@ static void work_fn_rx(struct work_struct *work)
                unsigned long flags;
                int count;
 
-               chan->device->device_terminate_all(chan);
+               chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
                dev_dbg(port->dev, "Read %u bytes with cookie %d\n",
                        sh_desc->partial, sh_desc->cookie);