]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Fix return value check in oxnas_stdclk_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jun 2016 17:24:23 +0000 (17:24 +0000)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 21 Jun 2016 00:00:29 +0000 (17:00 -0700)
commit56784bedba3d5e0c6e24d5d8793f895a80e87bae
treede91389060c9e94e25e4a4f0331d550841dd90db
parentcd13802ae47f188f1b855ad6ea0fb2ca4bd63d89
clk: Fix return value check in oxnas_stdclk_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Fixes: 3b1e9757539c ("clk: Add Oxford Semiconductor OXNAS Standard Clocks")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-oxnas.c