To allow for two-step component registration, expose snd_soc_component_initialize function and move it back to soc-core.c.
Showing the changes to include (2 of 4 files). Show all
Unified · Split
| @@ -325,9 +325,6 @@ static inline int snd_soc_component_cache_sync( · 324 unmodified lines | ||
| 325 | 325 | return regcache_sync(component->regmap); |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | −int snd_soc_component_initialize(struct snd_soc_component *component, | |
| 329 | − const struct snd_soc_component_driver *driver, | |
| 330 | − struct device *dev, const char *name); | |
| 331 | 328 | void snd_soc_component_set_aux(struct snd_soc_component *component, |
| 332 | 329 | struct snd_soc_aux_dev *aux); |
| 333 | 330 | int snd_soc_component_init(struct snd_soc_component *component); |
| @@ -414,6 +414,9 @@ static inline int snd_soc_resume(struct device *dev) · 413 unmodified lines | ||
| 414 | 414 | } |
| 415 | 415 | #endif |
| 416 | 416 | int snd_soc_poweroff(struct device *dev); |
| 417 | +int snd_soc_component_initialize(struct snd_soc_component *component, | |
| 418 | + const struct snd_soc_component_driver *driver, | |
| 419 | + struct device *dev, const char *name); | |
| 417 | 420 | int snd_soc_add_component(struct device *dev, |
| 418 | 421 | struct snd_soc_component *component, |
| 419 | 422 | const struct snd_soc_component_driver *component_driver, |