瀏覽代碼

i2c: sh_mobile: remove redundant deinitialization

No need to clear the interrupt registers because right after that we
disable the IP core which will reload registers with their initial
values anyhow.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Wolfram Sang 7 年之前
父節點
當前提交
3f3a513985
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      drivers/i2c/busses/i2c-sh_mobile.c

+ 0 - 4
drivers/i2c/busses/i2c-sh_mobile.c

@@ -307,10 +307,6 @@ static void activate_ch(struct sh_mobile_i2c_data *pd)
 
 static void deactivate_ch(struct sh_mobile_i2c_data *pd)
 {
-	/* Clear/disable interrupts */
-	iic_wr(pd, ICSR, 0);
-	iic_wr(pd, ICIC, 0);
-
 	/* Disable channel */
 	iic_set_clr(pd, ICCR, 0, ICCR_ICE);