mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
ASoC: rt5670: Remove unbalanced pm_runtime_put()
[ Upstream commit6c900dcc3f
] 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:64e89e5f55
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
593f0c94dc
commit
525f1c8ada
1 changed files with 0 additions and 2 deletions
|
@ -3028,8 +3028,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);
|
||||
|
|
Loading…
Reference in a new issue