projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f289800
)
i2c: sh_mobile: remove redundant deinitialization
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 2 Nov 2017 12:47:28 +0000
(13:47 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 27 Nov 2017 17:52:56 +0000
(18:52 +0100)
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>
drivers/i2c/busses/i2c-sh_mobile.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-sh_mobile.c
b/drivers/i2c/busses/i2c-sh_mobile.c
index 0ac152586e748dbb03accd394d45a7982e3b98db..cbaed24fb18fbe68475bfe657eb45f07171e5556 100644
(file)
--- 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);