Re: [PATCH 00/13 v2] Regulator ena_gpiod fixups

From: Linus Walleij
Date: Wed Dec 05 2018 - 09:32:35 EST


On Wed, Dec 5, 2018 at 3:30 PM Marek Szyprowski
<m.szyprowski@xxxxxxxxxxx> wrote:

> > I just sent a fix for that, subject:
> > "gpio: devres: Handle nonexclusive GPIOs"
> > you could perhaps try it on top of this
> > series? I intend to merge that separately as a fix for current,
> > as it is a bug.
>
> Those 2 warnings were worrying me and I finally found! devres_*
> functions require to pass a pointer to the pointer as match_data, so
> desc must be passed as &desc to devres_find() and devres_destroy()
> functions, otherwise they always return -ENOENT. I will comment
> respective lines in your patches then.

Ah thanks so much Marek!

I will follow up with a v4 patch set immediately once I have it nailed
down. Devres is tricky, and I'm not the smartest...

Yours,
Linus Walleij