Commit ba1b4c8e authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Jonathan Cameron

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: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent f5572bd7
...@@ -836,8 +836,10 @@ static int exynos_adc_probe(struct platform_device *pdev) ...@@ -836,8 +836,10 @@ static int exynos_adc_probe(struct platform_device *pdev)
info->vdd = devm_regulator_get(&pdev->dev, "vdd"); info->vdd = devm_regulator_get(&pdev->dev, "vdd");
if (IS_ERR(info->vdd)) { if (IS_ERR(info->vdd)) {
dev_err(&pdev->dev, "failed getting regulator, err = %ld\n", if (PTR_ERR(info->vdd) != -EPROBE_DEFER)
PTR_ERR(info->vdd)); dev_err(&pdev->dev,
"failed getting regulator, err = %ld\n",
PTR_ERR(info->vdd));
return PTR_ERR(info->vdd); return PTR_ERR(info->vdd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment