summaryrefslogtreecommitdiff
path: root/drivers/clk/mvebu
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-20 15:31:05 +0000
committerStephen Boyd <sboyd@codeaurora.org>2016-08-24 01:04:54 -0700
commit0f7dd7acda0add9cbd39caa6902c9e79ecb0a89d (patch)
tree94bfcdb649e329ed0d05e4b1962825ed9495a49d /drivers/clk/mvebu
parent63bb4fd6a391167f855f9b38b27945bed4015756 (diff)
clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mvebu')
-rw-r--r--drivers/clk/mvebu/armada-37xx-periph.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 5bb13c9bb802..45905fc0d75b 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -383,10 +383,8 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
reg = devm_ioremap_resource(dev, res);
- if (IS_ERR(reg)) {
- dev_err(dev, "Could not map the periph clock registers\n");
+ if (IS_ERR(reg))
return PTR_ERR(reg);
- }
driver_data = devm_kzalloc(dev, sizeof(*driver_data), GFP_KERNEL);
if (!driver_data)