All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe
       [not found] <CGME20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd@eucas1p2.samsung.com>
@ 2020-02-28  9:21 ` Marek Szyprowski
  2020-02-28 11:33   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Szyprowski @ 2020-02-28  9:21 UTC (permalink / raw)
  To: linux-iio, linux-samsung-soc
  Cc: Marek Szyprowski, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, Krzysztof Kozlowski

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>
---
 drivers/iio/adc/exynos_adc.c | 6 ++++--
 1 file 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);
 	}
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe
  2020-02-28  9:21 ` [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe Marek Szyprowski
@ 2020-02-28 11:33   ` Krzysztof Kozlowski
  2020-03-01 12:03     ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2020-02-28 11:33 UTC (permalink / raw)
  To: Marek Szyprowski
  Cc: linux-iio, linux-samsung-soc, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler

On Fri, Feb 28, 2020 at 10:21:21AM +0100, Marek Szyprowski wrote:
> 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>
> ---
>  drivers/iio/adc/exynos_adc.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe
  2020-02-28 11:33   ` Krzysztof Kozlowski
@ 2020-03-01 12:03     ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2020-03-01 12:03 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marek Szyprowski, linux-iio, linux-samsung-soc, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler

On Fri, 28 Feb 2020 12:33:14 +0100
Krzysztof Kozlowski <krzk@kernel.org> wrote:

> On Fri, Feb 28, 2020 at 10:21:21AM +0100, Marek Szyprowski wrote:
> > 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>
> > ---
> >  drivers/iio/adc/exynos_adc.c | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)  
> 
> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Applied to the togreg branch of iio.git and pushed out
as testing for the autobuilders to play with it.

Thanks,

Jonathan

> 
> Best regards,
> Krzysztof
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-01 12:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd@eucas1p2.samsung.com>
2020-02-28  9:21 ` [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe Marek Szyprowski
2020-02-28 11:33   ` Krzysztof Kozlowski
2020-03-01 12:03     ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.