[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0fdf2820d2cfb14ed40b39ab9b4e6fd43a0ef3d.camel@mediatek.com>
Date: Mon, 11 Dec 2023 04:08:19 +0000
From: Maso Huang (黃加竹)
<Maso.Huang@...iatek.com>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mediatek@...ts.infradead.org"
<linux-mediatek@...ts.infradead.org>,
"linux-sound@...r.kernel.org" <linux-sound@...r.kernel.org>,
"broonie@...nel.org" <broonie@...nel.org>,
"tiwai@...e.com" <tiwai@...e.com>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"matthias.bgg@...il.com" <matthias.bgg@...il.com>,
"daniel@...rotopia.org" <daniel@...rotopia.org>,
"perex@...ex.cz" <perex@...ex.cz>,
"angelogioacchino.delregno@...labora.com"
<angelogioacchino.delregno@...labora.com>
Subject: Re: [PATCH] ASoC: mediatek: mt7986: silence error in case of
-EPROBE_DEFER
On Mon, 2023-12-11 at 01:33 +0000, Daniel Golle wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> If probe is defered no error should be printed. Mute it.
>
> Signed-off-by: Daniel Golle <daniel@...rotopia.org>
>
Reviewed-by: Maso Huang <maso.huang@...iatek.com>
> ---
> sound/soc/mediatek/mt7986/mt7986-wm8960.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/mediatek/mt7986/mt7986-wm8960.c
> b/sound/soc/mediatek/mt7986/mt7986-wm8960.c
> index c1390b3734101..24a4b943030d7 100644
> --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c
> +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c
> @@ -144,7 +144,9 @@ static int mt7986_wm8960_machine_probe(struct
> platform_device *pdev)
>
> ret = devm_snd_soc_register_card(&pdev->dev, card);
> if (ret) {
> -dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__,
> ret);
> +if (ret != -EPROBE_DEFER)
> +dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__,
> ret);
> +
> goto err_of_node_put;
> }
>
> --
> 2.43.0
>
Powered by blists - more mailing lists