Re: [PATCH] Free HDQ clocks in error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Madhusudhan Chikkature <madhu.cr@xxxxxx> [080722 15:04]:
> Hi,
> 
> This patch provides the fix to free the HDQ clocks in the error path.
> 
> Regards,
> Madhu
> -----------------------------------------------------------------
> 
> From: Madhusudhan Chikkature<madhu.cr@xxxxxx>
> 
> ARM: OMAP3: Free HDQ clocks when a read is tried with no battery connected

Pushing today.

Tony


> Signed-off-by: Madhusudhan Chikkature<madhu.cr@xxxxxx>
> ---
>  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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux