Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0258382b authored by Rabin Vincent's avatar Rabin Vincent Committed by Mark Brown
Browse files

regulator: gpio: don't print error on EPROBE_DEFER



Don't print out an error with the driver sees EPROBE_DEFER when
attempting to get the gpio.  These errors are usually transient; the
probe will be retried later.

Signed-off-by: default avatarRabin Vincent <rabin.vincent@axis.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92e963f5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -283,8 +283,10 @@ static int gpio_regulator_probe(struct platform_device *pdev)
		drvdata->nr_gpios = config->nr_gpios;
		ret = gpio_request_array(drvdata->gpios, drvdata->nr_gpios);
		if (ret) {
			if (ret != -EPROBE_DEFER)
				dev_err(&pdev->dev,
			"Could not obtain regulator setting GPIOs: %d\n", ret);
					"Could not obtain regulator setting GPIOs: %d\n",
					ret);
			goto err_memstate;
		}
	}