Skip to content

Commit

Permalink
ASoC: rt5670: Remove unbalanced pm_runtime_put()
Browse files Browse the repository at this point in the history
For some reason rt5670_i2c_probe() does a pm_runtime_put() at the end
of a successful probe. But it has never done a pm_runtime_get() leading
to the following error being logged into dmesg:

 rt5670 i2c-10EC5640:00: Runtime PM usage count underflow!

Fix this by removing the unnecessary pm_runtime_put().

Fixes: 64e89e5 ("ASoC: rt5670: Add runtime PM support")
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
jwrdegoede authored and broonie committed Dec 13, 2022
1 parent a1dec9d commit 6c900dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/rt5670.c
Original file line number Diff line number Diff line change
Expand Up @@ -3311,8 +3311,6 @@ static int rt5670_i2c_probe(struct i2c_client *i2c)
if (ret < 0)
goto err;

pm_runtime_put(&i2c->dev);

return 0;
err:
pm_runtime_disable(&i2c->dev);
Expand Down

0 comments on commit 6c900dc

Please sign in to comment.