ASoC: rt5682s: simplify the return of rt5682s_probe()
After commit bfc5e8b860ad ("ASoC: rt5682s: Reduce coupling of Micbias and Vref2 settings"), the return of rt5682s_probe() can be simplified. No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220920151413.3455255-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a65eacaf98
commit
2edd66eccf
@ -2864,15 +2864,10 @@ static inline int rt5682s_dai_probe_clks(struct snd_soc_component *component)
|
|||||||
static int rt5682s_probe(struct snd_soc_component *component)
|
static int rt5682s_probe(struct snd_soc_component *component)
|
||||||
{
|
{
|
||||||
struct rt5682s_priv *rt5682s = snd_soc_component_get_drvdata(component);
|
struct rt5682s_priv *rt5682s = snd_soc_component_get_drvdata(component);
|
||||||
int ret;
|
|
||||||
|
|
||||||
rt5682s->component = component;
|
rt5682s->component = component;
|
||||||
|
|
||||||
ret = rt5682s_dai_probe_clks(component);
|
return rt5682s_dai_probe_clks(component);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rt5682s_remove(struct snd_soc_component *component)
|
static void rt5682s_remove(struct snd_soc_component *component)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user