Hello Dmitry, On Sun, Oct 07, 2018 at 10:37:26PM +0200, Uwe Kleine-König wrote: > 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 <uwe@xxxxxxxxxxxxxxxxx> did this patch fell throug the cracks? I didn't get any feedback for it. Best regards Uwe > --- > drivers/input/misc/rotary_encoder.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c > index 30ec77ad32c6..a76e3f972432 100644 > --- 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"); > -- > 2.19.0 > > > -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |