Re: [PATCH v2] regulator: wm8994: Don't use devres for enable GPIOs

From: Linus Walleij
Date: Thu Nov 22 2018 - 09:20:53 EST


On Wed, Nov 21, 2018 at 11:42 AM Marek Szyprowski
<m.szyprowski@xxxxxxxxxxx> wrote:

> Linus, Mark: Similar issue is probably in the other regulator drivers,
> which use enable GPIO allocated by devm_gpio_get*(). This driver is
> simply the first one, which we observed it. It would be great if one
> would take a look into regulator_register() error path, because for some
> cases the GPIO will be freed, for the other - not.

OK I am onto it!

Yours,
Linus Walleij