Hi,

This patch provides the fix to free the HDQ clocks in the error path.

Regards,
Madhu
-----------------------------------------------------------------

From: Madhusudhan Chikkature<[EMAIL PROTECTED]>

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

Signed-off-by: Madhusudhan Chikkature<[EMAIL PROTECTED]>
---
 drivers/w1/masters/omap_hdq.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

Index: linux-omap-ti.git-07102008/drivers/w1/masters/omap_hdq.c
===================================================================
--- linux-omap-ti.git-07102008.orig/drivers/w1/masters/omap_hdq.c       
2008-07-02
20:10:38.000000000 +0530
+++ linux-omap-ti.git-07102008/drivers/w1/masters/omap_hdq.c    2008-07-16
12:17:42.000000000 +0530
@@ -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) {


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to