diff options
| -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) | |||
| 283 | drvdata->nr_gpios = config->nr_gpios; | 283 | drvdata->nr_gpios = config->nr_gpios; |
| 284 | ret = gpio_request_array(drvdata->gpios, drvdata->nr_gpios); | 284 | ret = gpio_request_array(drvdata->gpios, drvdata->nr_gpios); |
| 285 | if (ret) { | 285 | if (ret) { |
| 286 | dev_err(&pdev->dev, | 286 | if (ret != -EPROBE_DEFER) |
| 287 | "Could not obtain regulator setting GPIOs: %d\n", ret); | 287 | dev_err(&pdev->dev, |
| 288 | "Could not obtain regulator setting GPIOs: %d\n", | ||
| 289 | ret); | ||
| 288 | goto err_memstate; | 290 | goto err_memstate; |
| 289 | } | 291 | } |
| 290 | } | 292 | } |
