diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2020-07-31 16:41:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-31 19:35:57 +0100 |
commit | 08ff7209faf21daa01bf66c91c321ce52d4b4bdb (patch) | |
tree | 65e53204dbbe3f2fa03fc408cd10131ed7e33c31 /sound/soc/soc-component.c | |
parent | 14e5ad7d118997741aa567dfc4398f72762ff08a (diff) |
ASoC: core: Relocate and expose snd_soc_component_initialize
To allow for two-step component registration, expose
snd_soc_component_initialize function and move it back to soc-core.c.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20200731144146.6678-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-component.c')
-rw-r--r-- | sound/soc/soc-component.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index dcc89fa8913a..f0b4f4bc44a4 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -33,22 +33,6 @@ static inline int _soc_component_ret(struct snd_soc_component *component, return ret; } -int snd_soc_component_initialize(struct snd_soc_component *component, - const struct snd_soc_component_driver *driver, - struct device *dev, const char *name) -{ - INIT_LIST_HEAD(&component->dai_list); - INIT_LIST_HEAD(&component->dobj_list); - INIT_LIST_HEAD(&component->card_list); - mutex_init(&component->io_mutex); - - component->name = name; - component->dev = dev; - component->driver = driver; - - return 0; -} - void snd_soc_component_set_aux(struct snd_soc_component *component, struct snd_soc_aux_dev *aux) { |