summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-dw.c')
-rw-r--r--drivers/spi/spi-dw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index 8d67d03c71eb..4fbfcdc5cb24 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -194,7 +194,7 @@ static void dw_writer(struct dw_spi *dws)
194 else 194 else
195 txw = *(u16 *)(dws->tx); 195 txw = *(u16 *)(dws->tx);
196 } 196 }
197 dw_writel(dws, DW_SPI_DR, txw); 197 dw_write_io_reg(dws, DW_SPI_DR, txw);
198 dws->tx += dws->n_bytes; 198 dws->tx += dws->n_bytes;
199 } 199 }
200} 200}
@@ -205,7 +205,7 @@ static void dw_reader(struct dw_spi *dws)
205 u16 rxw; 205 u16 rxw;
206 206
207 while (max--) { 207 while (max--) {
208 rxw = dw_readl(dws, DW_SPI_DR); 208 rxw = dw_read_io_reg(dws, DW_SPI_DR);
209 /* Care rx only if the transfer's original "rx" is not null */ 209 /* Care rx only if the transfer's original "rx" is not null */
210 if (dws->rx_end - dws->len) { 210 if (dws->rx_end - dws->len) {
211 if (dws->n_bytes == 1) 211 if (dws->n_bytes == 1)