summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c b/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
index c9f4d99224..ec08dd61bb 100644
--- a/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
@@ -171,6 +171,7 @@ L_try_again:
}
__i2c_send_stop();
+ i2c_close();
return count - cnt;
device_err:
@@ -230,6 +231,7 @@ W_try_again:
}
__i2c_send_stop();
+ i2c_close();
return count - cnt;
device_err: