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