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 <[email protected]> Signed-off-by: Qiheng Lin <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6efb943 commit a06bc96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)