aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_bfin5xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_bfin5xx.c')
-rw-r--r--drivers/spi/spi_bfin5xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 7ccd18a11fad..6d3f6064871e 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -804,7 +804,7 @@ static void pump_transfers(unsigned long data)
804 if (bfin_addr_dcachable((unsigned long) drv_data->rx)) 804 if (bfin_addr_dcachable((unsigned long) drv_data->rx))
805 invalidate_dcache_range((unsigned long) drv_data->rx, 805 invalidate_dcache_range((unsigned long) drv_data->rx,
806 (unsigned long) (drv_data->rx + 806 (unsigned long) (drv_data->rx +
807 drv_data->len)); 807 drv_data->len_in_bytes));
808 808
809 /* clear tx reg soformer data is not shifted out */ 809 /* clear tx reg soformer data is not shifted out */
810 write_TDBR(drv_data, 0xFFFF); 810 write_TDBR(drv_data, 0xFFFF);
@@ -830,7 +830,7 @@ static void pump_transfers(unsigned long data)
830 if (bfin_addr_dcachable((unsigned long) drv_data->tx)) 830 if (bfin_addr_dcachable((unsigned long) drv_data->tx))
831 flush_dcache_range((unsigned long) drv_data->tx, 831 flush_dcache_range((unsigned long) drv_data->tx,
832 (unsigned long) (drv_data->tx + 832 (unsigned long) (drv_data->tx +
833 drv_data->len)); 833 drv_data->len_in_bytes));
834 834
835 /* start dma */ 835 /* start dma */
836 dma_enable_irq(drv_data->dma_channel); 836 dma_enable_irq(drv_data->dma_channel);
@@ -893,7 +893,7 @@ static void pump_transfers(unsigned long data)
893 message->state = ERROR_STATE; 893 message->state = ERROR_STATE;
894 } else { 894 } else {
895 /* Update total byte transfered */ 895 /* Update total byte transfered */
896 message->actual_length += drv_data->len; 896 message->actual_length += drv_data->len_in_bytes;
897 897
898 /* Move to next transfer of this msg */ 898 /* Move to next transfer of this msg */
899 message->state = next_transfer(drv_data); 899 message->state = next_transfer(drv_data);