Thread (23 messages) 23 messages, 5 authors, 2013-11-19
STALE4598d
Revisions (2)
  1. v5 current
  2. v6 [diff vs current]

[PATCH v5 1/7] gpio: davinci: remove unnecessary printk

From: prabhakar.csengg@gmail.com (Prabhakar Lad)
Date: 2013-11-08 10:12:20
Also in: linux-devicetree, linux-gpio, lkml
Subsystem: gpio subsystem, the rest, ti davinci series gpio driver · Maintainers: Linus Walleij, Bartosz Golaszewski, Linus Torvalds, Keerthy

From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>

the devm_*() helper prints error messages in case of
errors no need to do the same in the driver.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
---
 drivers/gpio/gpio-davinci.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 84be701..7230c43 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -389,11 +389,9 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev)
 	}
 
 	clk = devm_clk_get(dev, "gpio");
-	if (IS_ERR(clk)) {
-		printk(KERN_ERR "Error %ld getting gpio clock?\n",
-		       PTR_ERR(clk));
+	if (IS_ERR(clk))
 		return PTR_ERR(clk);
-	}
+
 	clk_prepare_enable(clk);
 
 	/*
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help