summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiheng Lin <linqiheng@huawei.com>2021-04-09 13:02:43 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2021-05-31 09:26:58 +0200
commita06bc96902617e93920fea4ce376b8aca9dd3326 (patch)
treea84f3d8286c7d2409e35dbef90de98ea1afa61c3
parentLinux 5.13-rc1 (diff)
downloadlinux-a06bc96902617e93920fea4ce376b8aca9dd3326.tar.xz
linux-a06bc96902617e93920fea4ce376b8aca9dd3326.zip
soc: amlogic: meson-clk-measure: remove redundant dev_err call in meson_msr_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Qiheng Lin <linqiheng@huawei.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lore.kernel.org/r/20210409110243.41-1-linqiheng@huawei.com
-rw-r--r--drivers/soc/amlogic/meson-clk-measure.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/amlogic/meson-clk-measure.c b/drivers/soc/amlogic/meson-clk-measure.c
index e1957476a006..6dd190270123 100644
--- a/drivers/soc/amlogic/meson-clk-measure.c
+++ b/drivers/soc/amlogic/meson-clk-measure.c
@@ -626,10 +626,8 @@ static int meson_msr_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(base)) {
- dev_err(&pdev->dev, "io resource mapping failed\n");
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
priv->regmap = devm_regmap_init_mmio(&pdev->dev, base,
&meson_clk_msr_regmap_config);