From: leilk.liu@mediatek.com Date: Fri, 20 Nov 2015 02:21:18 +0000 (+0800) Subject: spi: mediatek: remove needless pair of writel()/readl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c3dbd35d4369ddb0f0e26dd329a6aab870703e2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Matthias Brugger Signed-off-by: Mark Brown --- 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)