From patchwork Tue Oct 27 13:53:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 307246 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=ham 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 5B103C5517A for ; Tue, 27 Oct 2020 16:58:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F81622400 for ; Tue, 27 Oct 2020 16:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603817928; bh=uvecXbYCTZPped8G2lvRDzSBokW15fhQaFrKRnLJeFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=TARSRbfVS1ifFg9hdlzCqotz7/8iB5/9PqwvSNf+nvmm4FMRlu2dxH8WwO0vihfwt 3D3ucs4eQJHwvpkkbmubHMoC1hnyj3bgRjj76DuAwiuqV3/rHYJG4QGaZ4JupiqwKZ aXD+X2Vy0y9DZ8rJQnfa6YKg2lhIPR3UBnO7x4z0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S368628AbgJ0Q6q (ORCPT ); Tue, 27 Oct 2020 12:58:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:47506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794400AbgJ0PLi (ORCPT ); Tue, 27 Oct 2020 11:11:38 -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 7A19921D24; Tue, 27 Oct 2020 15:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811498; bh=uvecXbYCTZPped8G2lvRDzSBokW15fhQaFrKRnLJeFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqPiN6SS3GuRemyfSVX4hai1jUlzkMeb+8boLW0lw/eymrjK4XvPbsVwpjLmFI8f5 SsYrC25GJNY9zlmCJ4/sifCDFZfhHwpp2ElBDahIkSI2TSko9uGF+Cn6w+6dbSXhGq gAD3vek1zZ8AyMS2j+4stCIgUhefBxQWNJYkLu+8= 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.8 483/633] ARM: at91: pm: of_node_put() after its usage Date: Tue, 27 Oct 2020 14:53:46 +0100 Message-Id: <20201027135545.393729729@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 2aab043441e8f..eae8aaaadc3bf 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -800,6 +800,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;