]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson-axg: fix return value check in axg_clkc_probe()
authorweiyongjun (A) <weiyongjun1@huawei.com>
Thu, 28 Dec 2017 02:40:49 +0000 (02:40 +0000)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 28 Dec 2017 18:42:05 +0000 (10:42 -0800)
commitc29a0a6b29c937f10b76eb9010f2533eff98ca39
treebe0c3486a084989675a7f6eb902e350f92890259
parent8e8e5d3768602f357e3c446c6f5b21000f5c5153
clk: meson-axg: fix return value check in axg_clkc_probe()

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

Fixes: de6d8b0529f9 ("clk: meson-axg: add clock controller drivers")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/meson/axg.c