soc: amlogic: meson-clk-measure: remove redundant dev_err call in meson_msr_probe()
Subsystems (2)
PATCH 1/1 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]>
--- drivers/soc/amlogic/meson-clk-measure.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/soc/amlogic/meson-clk-measure.c +1 -3
@@ -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);
Quoted 28 lines · Qiheng Lin
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Reported-by Hulk Robot <[email protected]>Signed-off-by Qiheng Lin <[email protected]>--- drivers/soc/amlogic/meson-clk-measure.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/soc/amlogic/meson-clk-measure.c +1
-3@@ -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);
Quoted 5 lines
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Acked-by Neil Armstrong <[email protected]>
Quoted 3 lines · Qiheng Lin
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.
Applied, thanks!
[1/1] soc: amlogic: meson-clk-measure: remove redundant dev_err call in meson_msr_probe()
commit: 4f2f0162a389196fb4092aee93ef4a89f96390be
Best regards,
Signature · 1 line
Kevin Hilman <[email protected]>