Re: [PATCH 1/2] regulator: bq257xx: fix OF node reference imbalance

From: Doug Anderson

Date: Tue Apr 07 2026 - 20:57:27 EST


Hi,

On Tue, Apr 7, 2026 at 2:42 AM Johan Hovold <johan@xxxxxxxxxx> wrote:
>
> The driver reuses the OF node of the parent multi-function device but
> fails to take another reference to balance the one dropped by the
> platform bus code when unbinding the MFD and deregistering the child
> devices.
>
> Fix this by using the intended helper for reusing OF nodes.
>
> Fixes: 981dd162b635 ("regulator: bq257xx: Add bq257xx boost regulator driver")
> Cc: stable@xxxxxxxxxxxxxxx # 6.18
> Cc: Chris Morgan <macromorgan@xxxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
> drivers/regulator/bq257xx-regulator.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>