Commit e4968e9a authored by Madhusudhan Chikkature's avatar Madhusudhan Chikkature Committed by Tony Lindgren

Free HDQ clocks in error path

ARM: OMAP3: Free HDQ clocks when a read is tried with no battery connected

Signed-off-by: Madhusudhan Chikkature<madhu.cr@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0e5194e1
......@@ -515,8 +515,11 @@ static u8 omap_w1_read_byte(void *data)
int ret;
ret = hdq_read_byte(&val);
if (ret)
if (ret) {
init_trans = 0;
omap_hdq_put();
return -1;
}
/* Write followed by a read, release the module */
if (init_trans) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment