]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: fix return value check in of_fixed_clk_setup()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 21 Sep 2012 06:35:18 +0000 (14:35 +0800)
committerMike Turquette <mturquette@linaro.org>
Mon, 29 Oct 2012 17:34:12 +0000 (10:34 -0700)
commit9bcaec4a620c69d29854200dc75d33962f4ea185
tree0a509c10b60aa8c53395b810fcced865b5bdf24e
parenta249f729e9998d20ee837eb8a498703462344319
clk: fix return value check in of_fixed_clk_setup()

In case of error, the function clk_register_fixed_rate() returns
ERR_PTR() not NULL pointer. The NULL test in the return value
check should be replaced with IS_ERR().

dpatch engine is used to auto generated this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/clk/clk-fixed-rate.c