summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-06-05 11:10:21 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-06-10 10:14:25 +0200
commit8405f2089488c39b10e63b6522fcabc60fbd025a (patch)
tree53e0c1c9e77e29f6d3cb10bf2fec7625618cf0c5 /drivers/gpio
parentgpio: Added support to Zynq Ultrascale+ MPSoC (diff)
downloadlinux-8405f2089488c39b10e63b6522fcabc60fbd025a.tar.xz
linux-8405f2089488c39b10e63b6522fcabc60fbd025a.zip
gpio: promote own request failure to pr_err()
These error messages are helpful to see that we fail to get hogs. Promote them to real errors so they appear in the boot crawl. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 8dfb54f92594..07b83a9e9821 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -2131,13 +2131,13 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
local_desc = gpiochip_request_own_desc(chip, hwnum, name);
if (IS_ERR(local_desc)) {
- pr_debug("requesting own GPIO %s failed\n", name);
+ pr_err("requesting own GPIO %s failed\n", name);
return PTR_ERR(local_desc);
}
status = gpiod_configure_flags(desc, name, lflags, dflags);
if (status < 0) {
- pr_debug("setup of GPIO %s failed\n", name);
+ pr_err("setup of GPIO %s failed\n", name);
gpiochip_free_own_desc(desc);
return status;
}