Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[muen/linux.git] / drivers / input / misc / rotary_encoder.c
index 30ec77a..d748897 100644 (file)
@@ -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");