Messages in this thread | | | Date | Fri, 18 Apr 2014 18:23:58 +0100 | From | Mark Brown <> | Subject | Re: [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] | |