24 Mar
2014
24 Mar
'14
1:26 p.m.
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).