Skip to content

Commit

Permalink
clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock…
Browse files Browse the repository at this point in the history
…_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 <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
weiyj authored and bebarino committed Aug 24, 2016
1 parent 63bb4fd commit 0f7dd7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clk/mvebu/armada-37xx-periph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f7dd7a

Please sign in to comment.