aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index a9f82b5aba9d..6dab81799b9a 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -187,6 +187,9 @@ int snd_soc_cache_sync(struct snd_soc_codec *codec)
187 const char *name = "flat"; 187 const char *name = "flat";
188 int ret; 188 int ret;
189 189
190 if (codec->component.regmap)
191 return regcache_sync(codec->component.regmap);
192
190 if (!codec->cache_sync) 193 if (!codec->cache_sync)
191 return 0; 194 return 0;
192 195