lkml.org 
[lkml]   [2013]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/4] regulator-core: free requested GPIOs and manage the enable list
On Tue, Jan 15, 2013 at 04:35:50AM +0000, Kim, Milo wrote:
> The regulator_ena_gpio_request() allocates the enable GPIO and add the list.
> Related resources should be released if they are not used any more.
> To free requested GPIO and remove it from the enable GPIO list,
> new function, 'regulator_ena_gpio_free()' is added.

Ah, sorry - I hadn't realised this patch had the cleanup code. This
needs a bit of an update - as I said for one of the earlier patches we
need to reference count to make sure we only free the GPIO when it has
no users. With this patch we will free the GPIO when the first
regulator to use it is freed which might mean other regulators are still
using it.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-01-27 07:21    [W:0.062 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site