aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/soc.h1
-rw-r--r--sound/soc/soc-core.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 82bd773f8ab1..2ebf7877c148 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -718,6 +718,7 @@ struct snd_soc_platform {
718 int id; 718 int id;
719 struct device *dev; 719 struct device *dev;
720 struct snd_soc_platform_driver *driver; 720 struct snd_soc_platform_driver *driver;
721 struct mutex mutex;
721 722
722 unsigned int suspended:1; /* platform is suspended */ 723 unsigned int suspended:1; /* platform is suspended */
723 unsigned int probed:1; 724 unsigned int probed:1;
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 7978f6c01ef7..c90bb0110bd2 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3382,6 +3382,7 @@ int snd_soc_register_platform(struct device *dev,
3382 platform->dapm.dev = dev; 3382 platform->dapm.dev = dev;
3383 platform->dapm.platform = platform; 3383 platform->dapm.platform = platform;
3384 platform->dapm.stream_event = platform_drv->stream_event; 3384 platform->dapm.stream_event = platform_drv->stream_event;
3385 mutex_init(&platform->mutex);
3385 3386
3386 mutex_lock(&client_mutex); 3387 mutex_lock(&client_mutex);
3387 list_add(&platform->list, &platform_list); 3388 list_add(&platform->list, &platform_list);