diff options
| author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2025-12-16 15:02:01 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-02 12:56:58 +0100 |
| commit | 74fd0ae1a7de0a0da236877acd23e22f54d7d084 (patch) | |
| tree | 87d999603216803fc184acfe4841321aab65ea97 /sound | |
| parent | eaa95228b8a56c4880a182c0350d67922b22408f (diff) | |
| download | linux-74fd0ae1a7de0a0da236877acd23e22f54d7d084.tar.gz linux-74fd0ae1a7de0a0da236877acd23e22f54d7d084.tar.bz2 linux-74fd0ae1a7de0a0da236877acd23e22f54d7d084.zip | |
ASoC: ak4458: remove the reset operation in probe and remove
[ Upstream commit 00b960a83c764208b0623089eb70af3685e3906f ]
The reset_control handler has the reference count for usage, as there is
reset operation in runtime suspend and resume, then reset operation in
probe() would cause the reference count of reset not balanced.
Previously add reset operation in probe and remove is to fix the compile
issue with !CONFIG_PM, as the driver has been update to use
RUNTIME_PM_OPS(), so that change can be reverted.
Fixes: 1e0dff741b0a ("ASoC: ak4458: remove "reset-gpios" property handler")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20251216070201.358477-1-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/codecs/ak4458.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/ak4458.c b/sound/soc/codecs/ak4458.c index a6c04dd3de3e..abe742edb10f 100644 --- a/sound/soc/codecs/ak4458.c +++ b/sound/soc/codecs/ak4458.c @@ -783,16 +783,12 @@ static int ak4458_i2c_probe(struct i2c_client *i2c) pm_runtime_enable(&i2c->dev); regcache_cache_only(ak4458->regmap, true); - ak4458_reset(ak4458, false); return 0; } static void ak4458_i2c_remove(struct i2c_client *i2c) { - struct ak4458_priv *ak4458 = i2c_get_clientdata(i2c); - - ak4458_reset(ak4458, true); pm_runtime_disable(&i2c->dev); } |
