[lkml]   [2018]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/3] regulator: Only free GPIOs if the core requested them
On Thu, Nov 22, 2018 at 6:30 PM Charles Keepax
<> wrote:

> Currently, the regulator core will take ownership of any GPIO passed
> into it. Makes end driver code fairly error prone as the normal devm_
> patterns of allocation don't work. Update the regulator core to only
> free the GPIO if it requested it, this allows the drivers to manage the
> GPIO lifetime as they normally would.
> Reported-by: Marek Szyprowski <>
> Signed-off-by: Charles Keepax <>

Reviewed-by: Linus Walleij <>

This patch is slightly prettier than mine.

Linus Walleij

 \ /
  Last update: 2018-11-22 23:27    [W:0.195 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site