serial: sh-sci: prepare for conversion to the shdma base library
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 9 May 2012 15:09:17 +0000 (17:09 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 13 Jul 2012 03:43:08 +0000 (09:13 +0530)
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/tty/serial/sh-sci.c

index 4604153b7954b70288399bb675c373f1e16d2bf3..21f7e53f798360f5d1d13de42089057df346788f 100644 (file)
@@ -1615,9 +1615,9 @@ static bool filter(struct dma_chan *chan, void *slave)
        struct sh_dmae_slave *param = slave;
 
        dev_dbg(chan->device->dev, "%s: slave ID %d\n", __func__,
-               param->slave_id);
+               param->shdma_slave.slave_id);
 
-       chan->private = param;
+       chan->private = &param->shdma_slave;
        return true;
 }
 
@@ -1656,7 +1656,7 @@ static void sci_request_dma(struct uart_port *port)
        param = &s->param_tx;
 
        /* Slave ID, e.g., SHDMA_SLAVE_SCIF0_TX */
-       param->slave_id = s->cfg->dma_slave_tx;
+       param->shdma_slave.slave_id = s->cfg->dma_slave_tx;
 
        s->cookie_tx = -EINVAL;
        chan = dma_request_channel(mask, filter, param);
@@ -1684,7 +1684,7 @@ static void sci_request_dma(struct uart_port *port)
        param = &s->param_rx;
 
        /* Slave ID, e.g., SHDMA_SLAVE_SCIF0_RX */
-       param->slave_id = s->cfg->dma_slave_rx;
+       param->shdma_slave.slave_id = s->cfg->dma_slave_rx;
 
        chan = dma_request_channel(mask, filter, param);
        dev_dbg(port->dev, "%s: RX: got channel %p\n", __func__, chan);