static void snd_soc_component_add_unlocked(struct snd_soc_component *component) { if (!component->write && !component->read) { if (!component->regmap) component->regmap = dev_get_regmap(component->dev, NULL); if (component->regmap) snd_soc_component_setup_regmap(component); }
list_add(&component->list, &component_list); INIT_LIST_HEAD(&component->dobj_list);
}