Skip to contentSkip to conversation

clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe()

PATCH Applied Wei Yongjun 2 participants 2 messages Aug 20, 2016 – Aug 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/mvebu/armada-37xx-periph.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clk/mvebu/armada-37xx-periph.c +1 -3
index 5bb13c9..45905fc 100644
@@ -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)
Applied
#1 lore raw
Quoted 6 lines · Wei Yongjun

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project