projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf7a4a
)
gpio: promote own request failure to pr_err()
author
Linus Walleij
<linus.walleij@linaro.org>
Fri, 5 Jun 2015 09:10:21 +0000
(11:10 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 10 Jun 2015 08:14:25 +0000
(10:14 +0200)
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>
drivers/gpio/gpiolib.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpiolib.c
b/drivers/gpio/gpiolib.c
index 8dfb54f9259428baebadb9519202f5977f8e8d39..07b83a9e982131bd96403a1acf3a14b9f691275c 100644
(file)
--- 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;
}