* [PATCH -next] clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe()
@ 2016-08-20 15:31 Wei Yongjun
2016-08-24 8:05 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-08-20 15:31 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Gregory CLEMENT; +Cc: Wei Yongjun, linux-clk
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>
---
drivers/clk/mvebu/armada-37xx-periph.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 5bb13c9..45905fc 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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-24 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20 15:31 [PATCH -next] clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe() Wei Yongjun
2016-08-24 8:05 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox