Skip to content

Commit 6c900dc

Browse files
jwrdegoedebroonie
authored andcommitted
ASoC: rt5670: Remove unbalanced pm_runtime_put()
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]>
1 parent a1dec9d commit 6c900dc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/soc/codecs/rt5670.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,8 +3311,6 @@ static int rt5670_i2c_probe(struct i2c_client *i2c)
33113311
if (ret < 0)
33123312
goto err;
33133313

3314-
pm_runtime_put(&i2c->dev);
3315-
33163314
return 0;
33173315
err:
33183316
pm_runtime_disable(&i2c->dev);

0 commit comments

Comments
 (0)