mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:33:00 -04:00
Input: rotary-encoder - don't log EPROBE_DEFER to kernel log
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]>
This commit is contained in:
parent
2a58dd767b
commit
0832e93632
1 changed files with 4 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue