commit | 34e44fe87437b6a5aad856f15f7a849e5fc137aa | [log] [tgz] |
---|---|---|
author | Rajendra Nayak <rnayak@ti.com> | Mon Mar 26 19:01:48 2012 +0530 |
committer | Mike Turquette <mturquette@linaro.org> | Tue Apr 24 16:37:39 2012 -0700 |
tree | 73b599e531184469cc3478033b82610afbe951f1 | |
parent | bffad66e31fe9d94cd096f2e4de7c683e1ae32ef [diff] |
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>