[alsa-devel] [PATCH 2/2] ASoC: SPEAr spdif_out: Use devm_snd_soc_register_component
sachin.kamat at linaro.org
Tue Sep 17 08:44:44 CEST 2013
On 17 September 2013 11:04, Viresh Kumar <viresh.kumar at linaro.org> wrote:
> On Tue, Sep 17, 2013 at 10:41 AM, Sachin Kamat <sachin.kamat at linaro.org> wrote:
>> devm_snd_soc_register_component makes code simpler.
>> + ret = devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
>> + &spdif_out_dai, 1);
>> return ret;
> What about doing return devm_snd_soc_register_component(***) here?
> And same for the other patch?
The other patch already has it. I will do this as part of follow-on
cleanup patch as it makes 'ret'
unused after that.
> Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
With warm regards,
More information about the Alsa-devel