Skip to content

Commit 00b960a

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: ak4458: remove the reset operation in probe and remove
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: 1e0dff7 ("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>
1 parent 9a068c4 commit 00b960a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

sound/soc/codecs/ak4458.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,16 +783,12 @@ static int ak4458_i2c_probe(struct i2c_client *i2c)
783783

784784
pm_runtime_enable(&i2c->dev);
785785
regcache_cache_only(ak4458->regmap, true);
786-
ak4458_reset(ak4458, false);
787786

788787
return 0;
789788
}
790789

791790
static void ak4458_i2c_remove(struct i2c_client *i2c)
792791
{
793-
struct ak4458_priv *ak4458 = i2c_get_clientdata(i2c);
794-
795-
ak4458_reset(ak4458, true);
796792
pm_runtime_disable(&i2c->dev);
797793
}
798794

0 commit comments

Comments
 (0)