rk29:add rk29_dma_config(dws->rx_dmach, 1, 1) one more argument
authorhhb <hhb@rock-chips.com>
Fri, 24 Jun 2011 02:27:56 +0000 (10:27 +0800)
committerhhb <hhb@rock-chips.com>
Fri, 24 Jun 2011 02:27:56 +0000 (10:27 +0800)
drivers/spi/rk29_spim.c

index 08fd217d831114d09d57d2dfed4f5ff848ee601c..4cd50405e527a158d6da56ea428b141ccee456e4 100755 (executable)
@@ -1049,7 +1049,7 @@ static void dma_transfer(struct rk29xx_spi *dws) //int cs_change)
                        burst = 4;\r
                }\r
                if (rk29_dma_config(dws->tx_dmach, burst)) {*/\r
-               if (rk29_dma_config(dws->tx_dmach, 1)) {//there is not dma burst but bitwide, set it 1 alwayss\r
+               if (rk29_dma_config(dws->tx_dmach, 1, 1)) {//there is not dma burst but bitwide, set it 1 alwayss\r
                        dev_err(&dws->master->dev, "function: %s, line: %d\n", __FUNCTION__, __LINE__);\r
                        goto err_out;\r
                }\r
@@ -1074,7 +1074,7 @@ static void dma_transfer(struct rk29xx_spi *dws) //int cs_change)
 \r
        if (transfer->rx_buf != NULL) {\r
                dws->state |= RXBUSY;\r
-               if (rk29_dma_config(dws->rx_dmach, 1)) {\r
+               if (rk29_dma_config(dws->rx_dmach, 1, 1)) {\r
                        dev_err(&dws->master->dev, "function: %s, line: %d\n", __FUNCTION__, __LINE__);\r
                        goto err_out;\r
                }\r