summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2013-11-29 15:47:34 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-12-03 13:10:48 +0100
commit351cfe0fe810588bb1cc75fb4f1c1d1d01914b82 (patch)
tree26c9b8caf57b6d3c0148f05ad3251d8c8baa047f
parent1aeef303b5d9e243c41d5b80f8bb059366514a10 (diff)
downloadblackbird-op-linux-351cfe0fe810588bb1cc75fb4f1c1d1d01914b82.tar.gz
blackbird-op-linux-351cfe0fe810588bb1cc75fb4f1c1d1d01914b82.zip
gpiolib: change a warning to debug message when failing to get gpio
It's the drivers responsibility to react on failure to get the gpio descriptors and not the frameworks. Since there are some common peripherals that may or may not have certain pins connected to gpio lines, depending on the platform, printing the warning there may end up generating useless bug reports. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index dbddace5df42..85f772c0b26a 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -2447,7 +2447,7 @@ struct gpio_desc *__must_check gpiod_get_index(struct device *dev,
}
if (IS_ERR(desc)) {
- dev_warn(dev, "lookup for GPIO %s failed\n", con_id);
+ dev_dbg(dev, "lookup for GPIO %s failed\n", con_id);
return desc;
}
OpenPOWER on IntegriCloud