[alsa-devel] [PATCH 08/13] ASoC: Track which components have been registered with snd_soc_register_component()
broonie at kernel.org
Mon Mar 24 13:26:18 CET 2014
On Mon, Mar 24, 2014 at 01:07:08PM +0100, Lars-Peter Clausen wrote:
> On 03/24/2014 12:48 PM, Mark Brown wrote:
> >The question there is why you'd ever want to only unregister a single
> >thing that the device registered. devm_ does make this a bit more
> >academic but still.
> I you probably wouldn't, but I think it makes the interface cleaner and devm
> doesn't really care whether we store a pointer to the parent device or a
> pointer to the component in the devm data.
Yes, of course the other bit is not wanting to register multiple
components in the first place (partly for this reason).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the Alsa-devel