lkml.org 
[lkml]   [2014]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: core: Use devres for releasing of_regulator_match of_nodes
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-04-18 19:41    [W:0.033 / U:1.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site