diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-02-28 10:21:21 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-03-08 17:28:44 +0000 |
commit | ba1b4c8e8092fbb9933aa5598f1b231853813a7e (patch) | |
tree | 55b3613f5a959bf33fb01bf5d893f2e8bd57093d /drivers/iio | |
parent | f5572bd7edeaa86a493949e18e907b6cecfea63d (diff) | |
download | linux-ba1b4c8e8092fbb9933aa5598f1b231853813a7e.tar.gz linux-ba1b4c8e8092fbb9933aa5598f1b231853813a7e.tar.bz2 linux-ba1b4c8e8092fbb9933aa5598f1b231853813a7e.zip |
iio: adc: exynos: Silence warning about regulators during deferred probe
Don't confuse user with meaningless warning about the failure in getting
regulators in case of deferred probe.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/exynos_adc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 2df7d057b249..22131a677445 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -836,8 +836,10 @@ static int exynos_adc_probe(struct platform_device *pdev) info->vdd = devm_regulator_get(&pdev->dev, "vdd"); if (IS_ERR(info->vdd)) { - dev_err(&pdev->dev, "failed getting regulator, err = %ld\n", - PTR_ERR(info->vdd)); + if (PTR_ERR(info->vdd) != -EPROBE_DEFER) + dev_err(&pdev->dev, + "failed getting regulator, err = %ld\n", + PTR_ERR(info->vdd)); return PTR_ERR(info->vdd); } |