Re: [PATCH 1/4] [media] exynos-gsc: Rearrange error messages for valid prints

2012-11-23 Thread Sylwester Nawrocki
On 11/23/2012 10:47 AM, Sachin Kamat wrote: >>> +err_clk_prepare: >>> gsc_clk_put(gsc); >> >> This call can be removed too. I would remove all labels and gotos in >> this function. Since there is only one clock, you need to only call >> clk_put when clk_prepare() fails, there is no need for g

Re: [PATCH 1/4] [media] exynos-gsc: Rearrange error messages for valid prints

2012-11-23 Thread Sachin Kamat
Hi Sylwester, Thanks for the review. On 23 November 2012 15:01, Sylwester Nawrocki wrote: > Hi Sachin, > > Thanks for the patches. > > On 11/23/2012 05:44 AM, Sachin Kamat wrote: >> In case of clk_prepare failure, the function gsc_clk_get also prints >> "failed to get clock" which is not correct

Re: [PATCH 1/4] [media] exynos-gsc: Rearrange error messages for valid prints

2012-11-23 Thread Sylwester Nawrocki
Hi Sachin, Thanks for the patches. On 11/23/2012 05:44 AM, Sachin Kamat wrote: > In case of clk_prepare failure, the function gsc_clk_get also prints > "failed to get clock" which is not correct. Hence move the error > messages to their respective blocks. While at it, also renamed the labels > me

[PATCH 1/4] [media] exynos-gsc: Rearrange error messages for valid prints

2012-11-22 Thread Sachin Kamat
In case of clk_prepare failure, the function gsc_clk_get also prints "failed to get clock" which is not correct. Hence move the error messages to their respective blocks. While at it, also renamed the labels meaningfully. Cc: Shaik Ameer Basha Signed-off-by: Sachin Kamat --- drivers/media/platf