]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpiolib: change a warning to debug message when failing to get gpio
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 29 Nov 2013 13:47:34 +0000 (15:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Dec 2013 12:10:48 +0000 (13:10 +0100)
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>
drivers/gpio/gpiolib.c

index dbddace5df42d0a0ed60c043d2cf113d0f70d3ef..85f772c0b26a619ec9c563f77f35c22fb8975e7f 100644 (file)
@@ -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;
        }