From patchwork Sun Dec 18 13:10:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13076041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5918C4332F for ; Sun, 18 Dec 2022 13:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1HmfJhFAUdkd0e/371TPNd/pQX96fwtQHSvO54x+riE=; b=RlOKXj4I6+XWEN tkLZD8/uLTRDSwNJ9YcMzPsfXXj0EuG90eD+S1atmcT87c1BmFY+lhh4Y6KVSl8k30i1jO9aJs9Sg IX7g5BuNKgVUb1q48DVnoce3N7gtV97u0SylEF6tRqdXDc/M+5tasN8iSViqlYX4sRukbRZD8D+99 6Uhl7y/F4tmRfyPd9U+UZJd92PEwUsQMNtkGaWmFoZm+yITmy7P1pkAx52rbA0wnsSKo5TGn1XHTc HeLoJ9ep4HuzSiV2pPRCarqmRLNAVcgtZo8kPnO5AvcyAXBQfyN+wOLWzWofAabs7xpiSpMzcF5wZ smh0xL5BpDRNFi3foMsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6tRm-001gcF-5A; Sun, 18 Dec 2022 13:11:18 +0000 Received: from viti.kaiser.cx ([2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6tRg-001gZx-3T for linux-arm-kernel@lists.infradead.org; Sun, 18 Dec 2022 13:11:13 +0000 Received: from dslb-178-004-201-210.178.004.pools.vodafone-ip.de ([178.4.201.210] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1p6tRa-0006i3-Gw; Sun, 18 Dec 2022 14:11:06 +0100 From: Martin Kaiser To: Tsahee Zidenberg , Antoine Tenart , Russell King Cc: Martin Kaiser , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: Alpine: add missing of_node_put call Date: Sun, 18 Dec 2022 14:10:26 +0100 Message-Id: <20221218131025.394179-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221218_051112_308169_53CD69B1 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org A node that is returned by of_find_compatible_node has its refcount incremented. We have to call of_node_put when the node is no longer needed. Add a missing of_node_put call in function alpine_cpu_pm_init. Signed-off-by: Martin Kaiser --- compile-tested only, I don't have this hardware arch/arm/mach-alpine/alpine_cpu_pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-alpine/alpine_cpu_pm.c b/arch/arm/mach-alpine/alpine_cpu_pm.c index 13ae8412e9ce..fc5b9732ccb7 100644 --- a/arch/arm/mach-alpine/alpine_cpu_pm.c +++ b/arch/arm/mach-alpine/alpine_cpu_pm.c @@ -50,6 +50,7 @@ void __init alpine_cpu_pm_init(void) np = of_find_compatible_node(NULL, NULL, "al,alpine-cpu-resume"); al_cpu_resume_regs = of_iomap(np, 0); + of_node_put(np); wakeup_supported = !IS_ERR(al_sysfabric) && al_cpu_resume_regs;