Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp233933pxx; Wed, 28 Oct 2020 03:37:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxbHVck7THUS9u7vNurbEvez6HtQb9iZF7Xpq8QDzzzGPESlFDBN2L0ICw/PmW01fKWP03 X-Received: by 2002:a17:906:6156:: with SMTP id p22mr6602223ejl.64.1603881461369; Wed, 28 Oct 2020 03:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603881461; cv=none; d=google.com; s=arc-20160816; b=vEtcJzCEIB67fw622739D5ZOSjB2aAfIUfDjE45pjtMmE8vioyuwdqvCEjSeStTfex MdwnPuV1uRi9rL5WwwPFmoTrYlC5k/FcVN8B2XJ45+rBFmCKkaeN4w49dHuz18pFrWIe Tgo1ZewIOReRpEJCwpo1w16rIqN8dMD27GeWOuX3CVtLps2oAVf6sxXtbJFPTX6WuKle 9d1FK9EkKPIdGaqslIF7ZOUEl4tdDs7rsMJA+HJ67qi9sUptS7lSwASJuwux9ZHKJNdw ys0L/yyYxmt4OpWJiACWyZpRSzBRKUMPs8KHJcVx5lzwHDaytR12JuL5ifnmBApSMUcs zGWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iLQif83u9wwlf24yHCavZi6uHGWSP7vBo1j4n9vKQSI=; b=Rv3ML5q9FzbwMXE+kC8SIBqc9SMm7Xx/9lBRkAlXzbKsQ3vQ6njeS8j46cL4BrB1/o 6qgdTDCW5s0Fo1YOodUVx5dg/3+ZJRGWmSB7snW3enc6TsFUXM4m6bT1yi1atsQFO6S2 BdSjVzwZNeh+4pwAen6kD/OSWiJA4eh83BwhslIl48liLg3ozyzpNxQsgYDSjdruLyqo iBh4xcNPeSjANcuuA6kePk85yQ7CX8lag9SozvkceDaY+h2CP8dHCvMoIzxemD2V5tcl Axp2hxbTe34iR8caBU+jzu5vRpscIpeDdEQSoGx0DUQzDSywPHuCZIjDP7RMS460CzUi 4NQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XpM+neHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si3473416ejm.389.2020.10.28.03.37.19; Wed, 28 Oct 2020 03:37:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XpM+neHQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762667AbgJ0On5 (ORCPT + 99 others); Tue, 27 Oct 2020 10:43:57 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; -- 2.25.1