Re: [PATCH] soc/tegra: refactor soc_is_tegra()

From: Thierry Reding
Date: Wed Nov 21 2018 - 10:28:54 EST


On Wed, Nov 21, 2018 at 09:12:04AM -0500, Yangtao Li wrote:
> of_find_node_by_path() acquires a reference to the node returned by
> it and that reference needs to be dropped by its caller.soc_is_tegra()
> doesn't do that, so fix it.Call of_machine_is_compatible() to refactor
> soc_is_tegra() whcih automatically manages the reference count.
>
> Signed-off-by: Yangtao Li <tiny.windzz@xxxxxxxxx>
> ---
> drivers/soc/tegra/common.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)

Applied to for-4.21/soc, thanks.

Thierry

Attachment: signature.asc
Description: PGP signature