diff options
| author | Goko Mell <goku.sonxin626@gmail.com> | 2025-11-05 19:03:16 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-11-07 22:49:45 +0300 |
| commit | e32c402533cc68abe20fcf3246b9ff53e1f96021 (patch) | |
| tree | 0264987c7aa0a4ed02c29e084f7e37c7ba515d89 | |
| parent | 6951be397ca8b8b167c9f99b5a11c541148c38cb (diff) | |
| download | linux-e32c402533cc68abe20fcf3246b9ff53e1f96021.tar.xz | |
ASoC: spacemit: fix incorrect error check for sspa clock
Fix a wrong IS_ERR() check in spacemit_i2s_probe() where `clk` was used
instead of `i2s->sspa_clk`.
Signed-off-by: Goko Mell <goku.sonxin626@gmail.com>
Link: https://patch.msgid.link/20251106-spacemit-i2s-fix-v1-1-ee2cedcdda23@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/spacemit/k1_i2s.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/spacemit/k1_i2s.c b/sound/soc/spacemit/k1_i2s.c index 8af05e1604f5..1cb99f1abc7c 100644 --- a/sound/soc/spacemit/k1_i2s.c +++ b/sound/soc/spacemit/k1_i2s.c @@ -414,8 +414,9 @@ static int spacemit_i2s_probe(struct platform_device *pdev) return dev_err_probe(i2s->dev, PTR_ERR(clk), "failed to enable sspa_bus clock\n"); i2s->sspa_clk = devm_clk_get_enabled(i2s->dev, "sspa"); - if (IS_ERR(clk)) - return dev_err_probe(i2s->dev, PTR_ERR(clk), "failed to enable sspa clock\n"); + if (IS_ERR(i2s->sspa_clk)) + return dev_err_probe(i2s->dev, PTR_ERR(i2s->sspa_clk), + "failed to enable sspa clock\n"); i2s->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(i2s->base)) |
