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)
commit4f8f7809e47b6af17032aad66f84d7c16444bd05
treebe0c3486a084989675a7f6eb902e350f92890259
parent70d7aebe63985808b604c20a17875a7f07f16900
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: 78b4af312f91 ("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