Skip to content

Commit

Permalink
soc: amlogic: meson-clk-measure: remove redundant dev_err call in mes…
Browse files Browse the repository at this point in the history
…on_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]
  • Loading branch information
ATRiiX authored and superna9999 committed May 31, 2021
1 parent 6efb943 commit a06bc96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/soc/amlogic/meson-clk-measure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a06bc96

Please sign in to comment.