diff options
author | Chen Hui <clare.chenhui@huawei.com> | 2021-04-08 16:48:56 +0300 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2021-04-08 20:35:26 +0300 |
commit | 7f32917642c7ea486c1bae5dfdebeeb56c35b29b (patch) | |
tree | ed09bd437fe250549b3e8a247ae49221de0ca11b /drivers/clk/samsung/clk-s5pv210-audss.c | |
parent | 34138a59b92c1a30649a18ec442d2e61f3bc34dd (diff) | |
download | linux-7f32917642c7ea486c1bae5dfdebeeb56c35b29b.tar.xz |
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: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Chen Hui <clare.chenhui@huawei.com>
Link: https://lore.kernel.org/linux-clk/20210408134856.207305-1-clare.chenhui@huawei.com
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'drivers/clk/samsung/clk-s5pv210-audss.c')
-rw-r--r-- | drivers/clk/samsung/clk-s5pv210-audss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/samsung/clk-s5pv210-audss.c b/drivers/clk/samsung/clk-s5pv210-audss.c index 14985ebd043b..a7827a120695 100644 --- a/drivers/clk/samsung/clk-s5pv210-audss.c +++ b/drivers/clk/samsung/clk-s5pv210-audss.c @@ -72,10 +72,8 @@ static int s5pv210_audss_clk_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); reg_base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(reg_base)) { - dev_err(&pdev->dev, "failed to map audss registers\n"); + if (IS_ERR(reg_base)) return PTR_ERR(reg_base); - } clk_data = devm_kzalloc(&pdev->dev, struct_size(clk_data, hws, AUDSS_MAX_CLKS), |