summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c')
-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:
171 } 171 }
172 172
173 __i2c_send_stop(); 173 __i2c_send_stop();
174 i2c_close();
174 return count - cnt; 175 return count - cnt;
175 176
176device_err: 177device_err:
@@ -230,6 +231,7 @@ W_try_again:
230 } 231 }
231 232
232 __i2c_send_stop(); 233 __i2c_send_stop();
234 i2c_close();
233 return count - cnt; 235 return count - cnt;
234 236
235device_err: 237device_err: