projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a58dd7
)
Input: rotary-encoder - don't log EPROBE_DEFER to kernel log
author
Uwe Kleine-König
<
[email protected]
>
Wed, 5 Dec 2018 01:58:55 +0000
(17:58 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Sun, 9 Dec 2018 05:52:09 +0000
(21:52 -0800)
When a driver fails to bind because a resource it still missing it's not
helpful to report this as (usually) probing is repeated later.
Signed-off-by: Uwe Kleine-König <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/misc/rotary_encoder.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/rotary_encoder.c
b/drivers/input/misc/rotary_encoder.c
index 1588aecafff79d8fdb54d80b7fa03a2ee9036f00..72eee6d5552720f040752347246e904873f58b37 100644
(file)
--- a/
drivers/input/misc/rotary_encoder.c
+++ b/
drivers/input/misc/rotary_encoder.c
@@
-240,8
+240,10
@@
static int rotary_encoder_probe(struct platform_device *pdev)
encoder->gpios = devm_gpiod_get_array(dev, NULL, GPIOD_IN);
if (IS_ERR(encoder->gpios)) {
- dev_err(dev, "unable to get gpios\n");
- return PTR_ERR(encoder->gpios);
+ err = PTR_ERR(encoder->gpios);
+ if (err != -EPROBE_DEFER)
+ dev_err(dev, "unable to get gpios: %d\n", err);
+ return err;
}
if (encoder->gpios->ndescs < 2) {
dev_err(dev, "not enough gpios found\n");