[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <63a3b1c7-a68a-496c-99fe-9c936f4ebd94@sirena.org.uk>
Date: Tue, 18 Apr 2023 13:55:53 +0100
From: Mark Brown <broonie@...nel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Banajit Goswami <bgoswami@...cinc.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/4] ASoC: codecs: wcd9335: Simplify with dev_err_probe
On Tue, Apr 18, 2023 at 09:46:27AM +0200, Krzysztof Kozlowski wrote:
> Replace dev_err() in probe() path with dev_err_probe() to:
> 1. Make code a bit simpler and easier to read,
> 2. Do not print messages on deferred probe.
> */
> wcd->intr1 = of_irq_get_byname(wcd->dev->of_node, "intr1");
> - if (wcd->intr1 < 0) {
> - if (wcd->intr1 != -EPROBE_DEFER)
> - dev_err(wcd->dev, "Unable to configure IRQ\n");
> -
> - return wcd->intr1;
This is already not printing a message on deferred probe.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists