[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdb3HSQ_h1+9RvBUEDRDSCih7bv7kcf+=cc3-c0Hn6A0bg@mail.gmail.com>
Date: Thu, 22 Nov 2018 15:19:45 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Charles Keepax <ckeepax@...nsource.cirrus.com>
Cc: Mark Brown <broonie@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
patches@...nsource.cirrus.com
Subject: Re: [PATCH v2] regulator: wm8994: Don't use devres for enable GPIOs
On Wed, Nov 21, 2018 at 11:13 AM Charles Keepax
<ckeepax@...nsource.cirrus.com> wrote:
> The regulator core takes over managing the lifetime of the enable GPIO
> once the regulator is registered. As such we shouldn't register the
> enable GPIO using devm, or it will be freed twice.
>
> Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
> Signed-off-by: Charles Keepax <ckeepax@...nsource.cirrus.com>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Thanks for fixing everything I break, I owe you big time Charles!
Now as Marek points out, I need to discern the pattern in this so
I can see if I broke something else the same way.
Yours,
Linus Walleij
Powered by blists - more mailing lists