mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gpio: Fix debug message in of_get_named_gpio_flags()
@ 2012-08-09  6:38 Thierry Reding
  2012-08-14 12:40 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2012-08-09  6:38 UTC (permalink / raw)
  To: Linus Walleij, Grant Likely; +Cc: linux-kernel

This was probably missed in the conversion done in commit 3d0f7cf
("gpio: Adjust of_xlate API to support multiple GPIO chips").

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 drivers/gpio/gpiolib-of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index a18c4aa..f1a4599 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -82,7 +82,7 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname,
 	gpiochip_find(&gg_data, of_gpiochip_find_and_xlate);
 
 	of_node_put(gg_data.gpiospec.np);
-	pr_debug("%s exited with status %d\n", __func__, ret);
+	pr_debug("%s exited with status %d\n", __func__, gg_data.out_gpio);
 	return gg_data.out_gpio;
 }
 EXPORT_SYMBOL(of_get_named_gpio_flags);
-- 
1.7.11.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: Fix debug message in of_get_named_gpio_flags()
  2012-08-09  6:38 [PATCH] gpio: Fix debug message in of_get_named_gpio_flags() Thierry Reding
@ 2012-08-14 12:40 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-08-14 12:40 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Grant Likely, linux-kernel

On Thu, Aug 9, 2012 at 8:38 AM, Thierry Reding
<thierry.reding@avionic-design.de> wrote:

> This was probably missed in the conversion done in commit 3d0f7cf
> ("gpio: Adjust of_xlate API to support multiple GPIO chips").
>
> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

Applied to my fixes branch, Grant: complain if it looks wrong.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-14 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09  6:38 [PATCH] gpio: Fix debug message in of_get_named_gpio_flags() Thierry Reding
2012-08-14 12:40 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®