diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-12-13 15:33:19 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-13 21:16:31 +0300 |
commit | 6c900dcc3f7331a67ed29739d74524e428d137fb (patch) | |
tree | 46221e245349e664e4d6152f8f460ea0d963f1c5 /sound/soc/codecs/rt5670.c | |
parent | a1dec9d70b6ad97087b60b81d2492134a84208c6 (diff) | |
download | linux-6c900dcc3f7331a67ed29739d74524e428d137fb.tar.xz |
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: 64e89e5f5548 ("ASoC: rt5670: Add runtime PM support")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221213123319.11285-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5670.c')
-rw-r--r-- | sound/soc/codecs/rt5670.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c index ebac6caeb40a..a230f441559a 100644 --- a/sound/soc/codecs/rt5670.c +++ b/sound/soc/codecs/rt5670.c @@ -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); |