summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-mt65xx.c
diff options
context:
space:
mode:
authorleilk.liu@mediatek.com <leilk.liu@mediatek.com>2015-11-20 10:21:18 +0800
committerMark Brown <broonie@kernel.org>2015-11-21 13:39:27 +0000
commit4c3dbd35d4369ddb0f0e26dd329a6aab870703e2 (patch)
tree7b51c77c741a0104385b3cd7db6b15edc7bfb5f8 /drivers/spi/spi-mt65xx.c
parent6e6a9cd461073256977bc8c91aba3c847e80fbd2 (diff)
downloadlinux-stable-4c3dbd35d4369ddb0f0e26dd329a6aab870703e2.tar.gz
linux-stable-4c3dbd35d4369ddb0f0e26dd329a6aab870703e2.tar.bz2
linux-stable-4c3dbd35d4369ddb0f0e26dd329a6aab870703e2.zip
spi: mediatek: remove needless pair of writel()/readl()
It's not need to re-read and re-write SPI_CMD_REG, so remove it. Signed-off-by: Leilk Liu <leilk.liu@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mt65xx.c')
-rw-r--r--drivers/spi/spi-mt65xx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c
index 563954a61424..2b3fcb8ca325 100644
--- a/drivers/spi/spi-mt65xx.c
+++ b/drivers/spi/spi-mt65xx.c
@@ -154,9 +154,6 @@ static int mtk_spi_prepare_message(struct spi_master *master,
reg_val |= SPI_CMD_CPOL;
else
reg_val &= ~SPI_CMD_CPOL;
- writel(reg_val, mdata->base + SPI_CMD_REG);
-
- reg_val = readl(mdata->base + SPI_CMD_REG);
/* set the mlsbx and mlsbtx */
if (chip_config->tx_mlsb)