diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2017-11-02 15:47:28 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-11-27 20:52:56 +0300 |
commit | 3f3a513985ce55d69922cc9b5a0e095432cdfbc4 (patch) | |
tree | e652120f8e1cf5f97a9125196bbe917c3bbf4d30 /drivers/i2c/busses/i2c-sh_mobile.c | |
parent | f289800af1fd4379403f2630e7e9420401a4cd8e (diff) | |
download | linux-3f3a513985ce55d69922cc9b5a0e095432cdfbc4.tar.xz |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-sh_mobile.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sh_mobile.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 0ac152586e74..cbaed24fb18f 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/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); |