diff options
author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-09-24 09:50:43 +0800 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2022-11-17 17:39:49 +0200 |
commit | c423f01633eb948ba6f8c98872b4119685e007fb (patch) | |
tree | de59f25046a684c0d9d30600d87cf24eebc0a5d3 /drivers | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
interconnect: qcom: icc-rpm: Remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220924015043.25130-1-shangxiaojing@huawei.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/interconnect/qcom/icc-rpm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 39e43b957599..ba6781f54ab7 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -477,11 +477,8 @@ int qnoc_probe(struct platform_device *pdev) } mmio = devm_ioremap_resource(dev, res); - - if (IS_ERR(mmio)) { - dev_err(dev, "Cannot ioremap interconnect bus resource\n"); + if (IS_ERR(mmio)) return PTR_ERR(mmio); - } qp->regmap = devm_regmap_init_mmio(dev, mmio, desc->regmap_cfg); if (IS_ERR(qp->regmap)) { |