[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZSCamhBD-M8CkZt6B3N9c2Jo_D3kwgOykj8+VJ_otYGQ@mail.gmail.com>
Date: Tue, 4 Oct 2022 09:14:38 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Jianqun Xu <jay.xu@...k-chips.com>
Cc: heiko@...ech.de, brgl@...ev.pl, andriy.shevchenko@...ux.intel.com,
robert.moore@...el.com, robh@...nel.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org,
lenb@...nel.org, rafael@...nel.org
Subject: Re: [PATCH 11/20] gpio/rockchip: add of_node for gpiochip
On Tue, Sep 20, 2022 at 12:31 PM Jianqun Xu <jay.xu@...k-chips.com> wrote:
> The Rockchip GPIO driver will probe before pinctrl and has no parent dt
> node, lack of the of_node will cause the driver probe failure.
>
> Signed-off-by: Jianqun Xu <jay.xu@...k-chips.com>
> +#ifdef CONFIG_OF_GPIO
> + gc->of_node = of_node_get(bank->dev->of_node);
> +#endif
Any introduction of of_node_get() needs to be balanced with a
corresponding of_node_put().
Yours,
Linus Walleij
Powered by blists - more mailing lists