Re: [PATCH] regulator: core: Use devres for releasing of_regulator_match of_nodes
From: Mark Brown
Date: Fri Apr 18 2014 - 13:24:32 EST
On Tue, Apr 15, 2014 at 01:34:36PM +0100, Charles Keepax wrote:
> Rather than requiring individual drivers to put the of_nodes returned
> from of_regulator_match use devres to put them. This also has the
> benefit it makes the life-time of the of_nodes match the lifetime of
> the init data also contained in the of_regulator_match structure, which
> seems more consistent.
Applied, thanks. It'd have been good to have explained that we were
already using managed allocations - allocating things without an explict
method for freeing if required is normally bad form, though it's
harmless and like I say already done here.
Attachment:
signature.asc
Description: Digital signature