clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 8 Oct 2019 07:41:38 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:23:00 +0000 (08:23 +0100)
commit7fabffed536484f5bdf67c2a1eb39a116c567f06
tree9c41f7c4a17b1435bdb1d7205c4cebfc65db9096
parent483cb2b2057050ff6f4d62027589144b2a7cd2e8
clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

commit 9629dbdabd1983ef53f125336e1d62d77b1620f9 upstream.

The syscon_regmap_lookup_by_phandle() will never return NULL, thus use
IS_ERR() to validate the return value instead of IS_ERR_OR_NULL().

Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure")
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lkml.kernel.org/r/1995139bee5248ff3e9d46dc715968f212cfc4cc.1570520268.git.baolin.wang@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sprd/common.c