Commit 7f329176 authored by Chen Hui's avatar Chen Hui Committed by Sylwester Nawrocki

clk: samsung: Remove redundant dev_err calls

There is error message within devm_ioremap_resource
already, so remove the dev_err calls to avoid redundant
error messages.
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarChen Hui <clare.chenhui@huawei.com>
Link: https://lore.kernel.org/linux-clk/20210408134856.207305-1-clare.chenhui@huawei.comSigned-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
parent 34138a59
...@@ -115,10 +115,8 @@ static int __init exynos4x12_isp_clk_probe(struct platform_device *pdev) ...@@ -115,10 +115,8 @@ static int __init exynos4x12_isp_clk_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
reg_base = devm_ioremap_resource(dev, res); reg_base = devm_ioremap_resource(dev, res);
if (IS_ERR(reg_base)) { if (IS_ERR(reg_base))
dev_err(dev, "failed to map registers\n");
return PTR_ERR(reg_base); return PTR_ERR(reg_base);
}
exynos4x12_save_isp = samsung_clk_alloc_reg_dump(exynos4x12_clk_isp_save, exynos4x12_save_isp = samsung_clk_alloc_reg_dump(exynos4x12_clk_isp_save,
ARRAY_SIZE(exynos4x12_clk_isp_save)); ARRAY_SIZE(exynos4x12_clk_isp_save));
......
...@@ -72,10 +72,8 @@ static int s5pv210_audss_clk_probe(struct platform_device *pdev) ...@@ -72,10 +72,8 @@ static int s5pv210_audss_clk_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
reg_base = devm_ioremap_resource(&pdev->dev, res); reg_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(reg_base)) { if (IS_ERR(reg_base))
dev_err(&pdev->dev, "failed to map audss registers\n");
return PTR_ERR(reg_base); return PTR_ERR(reg_base);
}
clk_data = devm_kzalloc(&pdev->dev, clk_data = devm_kzalloc(&pdev->dev,
struct_size(clk_data, hws, AUDSS_MAX_CLKS), struct_size(clk_data, hws, AUDSS_MAX_CLKS),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment