diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi_bfin5xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index f014cc21e813..011c5bddba6a 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c | |||
@@ -803,7 +803,7 @@ static void bfin_spi_pump_transfers(unsigned long data) | |||
803 | drv_data->rx, drv_data->len_in_bytes); | 803 | drv_data->rx, drv_data->len_in_bytes); |
804 | 804 | ||
805 | /* invalidate caches, if needed */ | 805 | /* invalidate caches, if needed */ |
806 | if (bfin_addr_dcachable((unsigned long) drv_data->rx)) | 806 | if (bfin_addr_dcacheable((unsigned long) drv_data->rx)) |
807 | invalidate_dcache_range((unsigned long) drv_data->rx, | 807 | invalidate_dcache_range((unsigned long) drv_data->rx, |
808 | (unsigned long) (drv_data->rx + | 808 | (unsigned long) (drv_data->rx + |
809 | drv_data->len_in_bytes)); | 809 | drv_data->len_in_bytes)); |
@@ -816,7 +816,7 @@ static void bfin_spi_pump_transfers(unsigned long data) | |||
816 | dev_dbg(&drv_data->pdev->dev, "doing DMA out.\n"); | 816 | dev_dbg(&drv_data->pdev->dev, "doing DMA out.\n"); |
817 | 817 | ||
818 | /* flush caches, if needed */ | 818 | /* flush caches, if needed */ |
819 | if (bfin_addr_dcachable((unsigned long) drv_data->tx)) | 819 | if (bfin_addr_dcacheable((unsigned long) drv_data->tx)) |
820 | flush_dcache_range((unsigned long) drv_data->tx, | 820 | flush_dcache_range((unsigned long) drv_data->tx, |
821 | (unsigned long) (drv_data->tx + | 821 | (unsigned long) (drv_data->tx + |
822 | drv_data->len_in_bytes)); | 822 | drv_data->len_in_bytes)); |