diff options
author | Rabin Vincent <rabin.vincent@axis.com> | 2016-02-19 11:27:53 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-21 02:09:34 +0900 |
commit | 0258382bf3985b736dde51a456a5a3c2cf7af958 (patch) | |
tree | 9e3fc62322ab6f82ce8ce069e48d13937b0f0805 /drivers/regulator/gpio-regulator.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-0258382bf3985b736dde51a456a5a3c2cf7af958.tar.gz linux-0258382bf3985b736dde51a456a5a3c2cf7af958.tar.bz2 linux-0258382bf3985b736dde51a456a5a3c2cf7af958.zip |
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: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/gpio-regulator.c')
-rw-r--r-- | drivers/regulator/gpio-regulator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index 7bba8b747f30..a8718e98674a 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c @@ -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) { - dev_err(&pdev->dev, - "Could not obtain regulator setting GPIOs: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, + "Could not obtain regulator setting GPIOs: %d\n", + ret); goto err_memstate; } } |