From patchwork Tue Oct 27 13:53:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 307111 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 243E1C55178 for ; Tue, 27 Oct 2020 17:31:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B642820878 for ; Tue, 27 Oct 2020 17:31:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603819884; bh=OKAIbu6QMwSa3X0tAJb2vIAb7E8W8uEIv2BcFZV3nyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HtFPiiX87+cIY/d3XTGvLnKGXkOlsSricX7KRIYQGBWl258JUB20AC6McEsuPFDaz DhA7zlkkTY66Hd4dL6zvNXESBIL9w2dRiOiybE00yxqge8Q7g+GKd+tBxCEZJo9SeA c0YxUfZngdCBIWaAPUI8/1aQ3D1ITdTPsKcjFJ0A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762323AbgJ0OmF (ORCPT ); Tue, 27 Oct 2020 10:42:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:41576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762318AbgJ0OmC (ORCPT ); Tue, 27 Oct 2020 10:42:02 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1240C206B2; Tue, 27 Oct 2020 14:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809722; bh=OKAIbu6QMwSa3X0tAJb2vIAb7E8W8uEIv2BcFZV3nyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XpM+neHQsESxY9lpJSOCp9jrFOq+9Xk9uzAEXmnS/TxCyxICT7+DItUraRUmEPQoz J70Y9POCNs9iZuD8/fy43kknTaJHDS4pwaG+0+6t8FNLkti4xGUm8ywvQdEBl/6ZlG klkRF3O2I4jOCXZ26hXZdYJiGN0n/3HzatyOz2CE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Alexandre Belloni , Sasha Levin Subject: [PATCH 5.4 297/408] ARM: at91: pm: of_node_put() after its usage Date: Tue, 27 Oct 2020 14:53:55 +0100 Message-Id: <20201027135508.814459785@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Claudiu Beznea [ Upstream commit e222f943519564978e082c152b4140a47e93392c ] Put node after it has been used. Fixes: 13f16017d3e3f ("ARM: at91: pm: Tie the USB clock mask to the pmc") Signed-off-by: Claudiu Beznea Signed-off-by: Alexandre Belloni Link: https://lore.kernel.org/r/1596616610-15460-4-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Sasha Levin --- arch/arm/mach-at91/pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 6bc3000deb86e..676cc2a318f41 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -777,6 +777,7 @@ static void __init at91_pm_init(void (*pm_idle)(void)) pmc_np = of_find_matching_node_and_match(NULL, atmel_pmc_ids, &of_id); soc_pm.data.pmc = of_iomap(pmc_np, 0); + of_node_put(pmc_np); if (!soc_pm.data.pmc) { pr_err("AT91: PM not supported, PMC not found\n"); return;