Re: [PATCH] pinctrl: mediatek: Use of_property_read_bool()

From: Linus Walleij
Date: Fri Aug 23 2024 - 11:40:01 EST


On Wed, Jul 31, 2024 at 9:14 PM Rob Herring (Arm) <robh@xxxxxxxxxx> wrote:

> Use of_property_read_bool() to read boolean properties rather than
> of_find_property(). This is part of a larger effort to remove callers
> of of_find_property() and similar functions. of_find_property() leaks
> the DT struct property and data pointers which is a problem for
> dynamically allocated nodes which may be freed.
>
> Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>

Patch applied!

Yours,
Linus Walleij