From: Claudiu Beznea Date: Wed, 6 Nov 2024 08:18:18 +0000 (+0200) Subject: ASoC: da7213: Return directly the value of regcache_sync() X-Git-Tag: v6.13-rc1~123^2~2^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=841256954037ad80a57b8fa17a794ae9a01b2e23;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20241106081826.1211088-24-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c index 486db60bf2dd1..4298ca77fa30f 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 = {