From: Naveen Krishna Ch Date: Thu, 26 Jun 2014 05:14:57 +0000 (+0530) Subject: i2c: exynos5: remove an unnecessary read of FIFO_STATUS register X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f89df3ed6846629c8a30c42a0856f891b5b47d3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: exynos5: remove an unnecessary read of FIFO_STATUS register This patch removes an extra read of FIFO_STATUS register in the interrrupt service routine. Which is read again before the actual use. Signed-off-by: Naveen Krishna Chatradhi Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index f9447a4263af..257d7d978986 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -405,7 +405,6 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id) int_status = readl(i2c->regs + HSI2C_INT_STATUS); writel(int_status, i2c->regs + HSI2C_INT_STATUS); - fifo_status = readl(i2c->regs + HSI2C_FIFO_STATUS); /* handle interrupt related to the transfer status */ if (int_status & HSI2C_INT_I2C) {