Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hans de Goede and committed by
Mark Brown
6c900dcc a1dec9d7

-2
-2
sound/soc/codecs/rt5670.c
··· 3311 3311 if (ret < 0) 3312 3312 goto err; 3313 3313 3314 - pm_runtime_put(&i2c->dev); 3315 - 3316 3314 return 0; 3317 3315 err: 3318 3316 pm_runtime_disable(&i2c->dev);