]> git.baikalelectronics.ru Git - kernel.git/commit
clk: handle NULL struct clk gracefully
authorMike Turquette <mturquette@linaro.org>
Thu, 22 Aug 2013 06:58:09 +0000 (23:58 -0700)
committerMike Turquette <mturquette@linaro.org>
Thu, 22 Aug 2013 06:58:09 +0000 (23:58 -0700)
commit69d8123d1f2555ad63e932f3a1c099606eef4f6d
tree840a7dba0e72740e9155fa57974a46728015faeb
parent5921f65472a789e9db4a35654af788f431d17f42
clk: handle NULL struct clk gracefully

At some point changes to clk_set_rate and clk_set_parent introduced a
bug whereby NULL struct clk pointers were treated as an error. This is
in violation of the API in include/linux/clk.h. Reintroduce graceful
handling of NULL clk's by bailing from clk_set_rate and clk_set_parent
with return codes of zero.

Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c