]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerStephen Boyd <sboyd@kernel.org>
Wed, 13 Nov 2019 22:59:46 +0000 (14:59 -0800)
commit7efbc35787309ed446f22d923260807ed7e2e552
treee4881679a03886773d0036d344b48ff6ae0efdb1
parentf5c4776cd5b591eea4e9be9f421e34f61b98ebb2
clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

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: 33d569922d53 ("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>
drivers/clk/sprd/common.c