]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: wm8962: Fix up incorrect error message in wm8962_set_fll
authorStuart Henderson <stuarth@opensource.cirrus.com>
Wed, 6 Mar 2024 16:14:39 +0000 (16:14 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:21:47 +0000 (18:21 -0400)
[ Upstream commit 96e202f8c52ac49452f83317cf3b34cd1ad81e18 ]

Use source instead of ret, which seems to be unrelated and will always
be zero.

Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com>
Link: https://msgid.link/r/20240306161439.1385643-5-stuarth@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm8962.c

index 030471248e0e475b53d980469b267bd5b4ae3dd7..272932e200d8705ed4057c7507df0745c0a97408 100644 (file)
@@ -2917,7 +2917,7 @@ static int wm8962_set_fll(struct snd_soc_component *component, int fll_id, int s
                                    WM8962_FLL_FRC_NCO, WM8962_FLL_FRC_NCO);
                break;
        default:
-               dev_err(component->dev, "Unknown FLL source %d\n", ret);
+               dev_err(component->dev, "Unknown FLL source %d\n", source);
                return -EINVAL;
        }