diff options
author | 2024-11-06 10:18:18 +0200 | |
---|---|---|
committer | 2024-11-06 21:14:30 +0000 | |
commit | 841256954037ad80a57b8fa17a794ae9a01b2e23 (patch) | |
tree | 73170fe4598216ae9baf42930227c059bcbec3d5 | |
parent | ASoC: da7213: Populate max_register to regmap_config (diff) | |
download | linux-rng-841256954037ad80a57b8fa17a794ae9a01b2e23.tar.xz linux-rng-841256954037ad80a57b8fa17a794ae9a01b2e23.zip |
ASoC: da7213: Return directly the value of regcache_sync()
Return directly the value of the regcache_sync() in
da7213_runtime_resume(). In case of any failures this will inform the
runtime resume process.
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20241106081826.1211088-24-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/da7213.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c index 486db60bf2dd..4298ca77fa30 100644 --- a/sound/soc/codecs/da7213.c +++ b/sound/soc/codecs/da7213.c @@ -2230,8 +2230,7 @@ static int __maybe_unused da7213_runtime_resume(struct device *dev) if (ret < 0) return ret; regcache_cache_only(da7213->regmap, false); - regcache_sync(da7213->regmap); - return 0; + return regcache_sync(da7213->regmap); } static const struct dev_pm_ops da7213_pm = { |