From mboxrd@z Thu Jan 1 00:00:00 1970 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 7CD42C5DF9D for ; Tue, 27 Oct 2020 16:16:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3553F21556 for ; Tue, 27 Oct 2020 16:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603815405; bh=uvecXbYCTZPped8G2lvRDzSBokW15fhQaFrKRnLJeFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=yiI6+Ih1Bk8pnO4uanQ5XVNFpOBkCgj3pAVYi1sEr6IUIENLLB+Bu3mip98Wnu7JG xiyCO+Q/hyomWsJJxnHoxdWnMnYWiwerbtgv3yr2MfjMlp3N+fzWFzR3oPIBQsrwzq RehFOXOoBAj2hWEntHmrSO81pzaUPt8lmbhGCrZY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1806189AbgJ0QGB (ORCPT ); Tue, 27 Oct 2020 12:06:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:42622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1802098AbgJ0Ppg (ORCPT ); Tue, 27 Oct 2020 11:45:36 -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 02AE422265; Tue, 27 Oct 2020 15:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813535; bh=uvecXbYCTZPped8G2lvRDzSBokW15fhQaFrKRnLJeFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HGr2WxqaCgl9b/IaBWKuBnHi/0Lx6qV4M2j/AQhnyW3QyKJob2TbApUslPmpfwb2I Js1i3JSwDsltBSFPCfMkV/UzvUen/6f97KIjLTOJSUIUUZj5ukJi16uYUX22pL4FJH WC2O98JVF935y2BEH2aZ4Cu/rC7nYGotsF2oX4PU= 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.9 585/757] ARM: at91: pm: of_node_put() after its usage Date: Tue, 27 Oct 2020 14:53:55 +0100 Message-Id: <20201027135517.971883723@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@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 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; -- 2.25.1