Skip to content

Commit a06bc96

Browse files
ATRiiXsuperna9999
authored andcommitted
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
1 parent 6efb943 commit a06bc96

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/amlogic/meson-clk-measure.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,10 +626,8 @@ static int meson_msr_probe(struct platform_device *pdev)
626626

627627
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
628628
base = devm_ioremap_resource(&pdev->dev, res);
629-
if (IS_ERR(base)) {
630-
dev_err(&pdev->dev, "io resource mapping failed\n");
629+
if (IS_ERR(base))
631630
return PTR_ERR(base);
632-
}
633631

634632
priv->regmap = devm_regmap_init_mmio(&pdev->dev, base,
635633
&meson_clk_msr_regmap_config);

0 commit comments

Comments
 (0)