clk: Make clk_get_rate() return 0 on error
authorRajendra Nayak <rnayak@ti.com>
Mon, 26 Mar 2012 13:31:48 +0000 (19:01 +0530)
committerMike Turquette <mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:39 +0000 (16:37 -0700)
commit34e44fe87437b6a5aad856f15f7a849e5fc137aa
tree73b599e531184469cc3478033b82610afbe951f1
parentbffad66e31fe9d94cd096f2e4de7c683e1ae32ef
clk: Make clk_get_rate() return 0 on error

Most users of clk_get_rate() actually assume a non zero
return value as a valid rate returned. Returing -EINVAL
might confuse such users, so make it instead return zero
on error.

Besides the return value of clk_get_rate seems to be
'unsigned long'.

Signed-off-by: Rajendra nayak <rnayak@ti.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c