diff options
author | Chunyan Zhang <zhang.chunyan@linaro.org> | 2019-05-22 04:15:02 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-06-26 21:15:08 +0300 |
commit | 78f529695182b980a5183b850fe2d87091e36874 (patch) | |
tree | e48d66fee63f86670ad41f8a0f8cc2ca3b1a4492 /drivers/clk/sprd | |
parent | 69b39d2503af55e3a2ac3130c95855ac185bb70d (diff) | |
download | linux-78f529695182b980a5183b850fe2d87091e36874.tar.xz |
clk: sprd: Check error only for devm_regmap_init_mmio()
The function devm_regmap_init_mmio() wouldn't return NULL pointer for
now, so only need to ensure the return value is not an error code.
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/sprd')
-rw-r--r-- | drivers/clk/sprd/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sprd/common.c b/drivers/clk/sprd/common.c index 9ce690999eaa..a5bdca1de5d0 100644 --- a/drivers/clk/sprd/common.c +++ b/drivers/clk/sprd/common.c @@ -58,7 +58,7 @@ int sprd_clk_regmap_init(struct platform_device *pdev, regmap = devm_regmap_init_mmio(&pdev->dev, base, &sprdclk_regmap_config); - if (IS_ERR_OR_NULL(regmap)) { + if (IS_ERR(regmap)) { pr_err("failed to init regmap\n"); return PTR_ERR(regmap); } |