Message ID | 20221206171049.3316611-3-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBLXPXWOAMGQE5OVDTJI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A43C83F1C8 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 6 Dec 2022 18:11:10 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id r7-20020a1c4407000000b003d153a83d27sf184147wma.0 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 06 Dec 2022 09:11:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670346670; cv=pass; d=google.com; s=arc-20160816; b=ygEnxZ1a03vDn47eN6eIE2k6bkhhtPC23Yglmgfe5Yi9emA15MDyJRz3WFBupP1THS i7y4V2zOasLpoZVxD1mhbIeOLxakA5+qLmOmF9qk4FPmMcG7gGp5L8pFuI8W4AcdhRks aboUL4ckJjZZssMhDVZxMN0bEp4MHJ3sjuWTuFB8vgsH3gLT523b5zqew7h15zP3uFtE wxIuXdCoZhkPta1B6MvgclM174YvPKTJTT27PeRe1yYRkeBKYIkE9XvzhrB3t49hUJgb xwCl34LYJtFH8dPWZphcqZ8Wz6NXlbmedhKhCpo4uLJEqJRqm+MVHxbi554lkNta3kdh DtRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=VnaYdfCH5dNZHG3MKG/ZVvDiC5Es30evyxAKsA9xA/LhmkMn79haE9PntUtiNtIu0g JgKtJuEWM50qA3hX91gsUPLSC/R9pnWMGNVleLrqV3TwawYNc+6zurN8CKKdihsUjp7+ xqv/kZrnikgyK7OFvJIPxkU/t3TpMUDaduTPzNzZZXeX47FOOEmLVGAQfbIyvc7nm0gp tyFL9sQ8yEKltAvmRInX6nYeQ/zsN8D2zAju5YtnYScuMT+MhFY9odGKp3WeHqjcAVRV 34DurwzwP2ML2+pinmKBSQTExpe8vSApyPgEmLqB7MepdvtM5Q1Yr+G1fHGVi1Fs7ujf 5HlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MkbkbT4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=J8uC17DHZZXC6ZGWFL/5/Fg7xFEpA9US0u2Mn2GZ+/7Jh2KC1q1NXrqnqPjf1Pdh/R mJHyXJrg6Qnfv+tr6wNOPeDQll45n5iaxKDfFIjio4xnFRx58KMA5+bZgIP7FD3oX6xa Sn3tQmVaiK6GxgVt6nMvOAShfRTtR41+2BYS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EUehCUIYYTlEqw7qkfD5aYXH/s4/gMkix0rxfp4PZP4=; b=N9BHGmmHEgcS7Q4zP+QaxbkcKjiMPUeMWw20xE3VkQxRnHjB+3O9PDs8q7uweOQFkO z9EIcy3YcjUV20tke3/V3vsSHifjzQLiAfxqcIQk6mS81eEabx+dlrn2jRSltOIlEJ2H JQY9dG2iS85vZ6t/j12u7GzYKCpUk3JrpNum4tC0nG33rSsQSYNjJ7SreLRyKvRYe6gG afDdw1rBKVYUNiBt9csw67/FxJZSevvDz01HQmkl96C2ohrhC+TMioVsGInlGEvxuA/3 b5pE+HtqDNjVXhaTS9bdlr4ZuJey4soNEO5O1hBEBxpM5wZDIzseL5UAs4M6IltWQEwN Sh3Q== X-Gm-Message-State: ANoB5pl80M8RtO8v2e92AznpJCVba9VhF4KXH/JBzw3ciHabbvlZmJAy dlpgWtZeFEvmLi2SmQLP8PImu2jp X-Google-Smtp-Source: AA0mqf70gpxXo1fIgkRzBnzm3LASCqfH8hrqwKxkfjjH0yfIGGGjXBEqpzzaOoKt4OYw6aogTmxq8A== X-Received: by 2002:a05:600c:3553:b0:3cf:8e62:f748 with SMTP id i19-20020a05600c355300b003cf8e62f748mr65388600wmq.175.1670346670306; Tue, 06 Dec 2022 09:11:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:e909:0:b0:3c6:efd6:9cd8 with SMTP id q9-20020a1ce909000000b003c6efd69cd8ls13153wmc.0.-pod-control-gmail; Tue, 06 Dec 2022 09:11:09 -0800 (PST) X-Received: by 2002:a05:600c:538d:b0:3d0:47c:b2ac with SMTP id hg13-20020a05600c538d00b003d0047cb2acmr50891435wmb.52.1670346669364; Tue, 06 Dec 2022 09:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670346669; cv=none; d=google.com; s=arc-20160816; b=sZIau3wWYnxwL3T6/p2/88UYs4ZDLhyyp5qhX6sZtP8O8vBqvEYxELGcCh0c6HpXWL p3GRsZj++nAjFIwnaDlQxPbyimJPYSDESVbJY5piZIGt7tWvSrMnL0aCWsotUdERBWOM im/WNS27nKMpdF+Qn5rU4MnCbfLL49UEDxoKesg+BAI3BLPlruAhov7Ygn8Yi7lp3VkC 0/43qkf1PkP0hFvXg4D6OIDJbYWPOIpnkmbGkcp5ialllCC220GrQ8JaDRFMLPFh7q4v FycuWwQaEWUJH92EBPe33Pe/XWh8k/uvcvoryVHLuykmitQftdmTsVFSUH/Sy2XLhD8h x0CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YmzucAOYeRO1Za2FBpNv+O/C9sORhwUJDwZR4toHbGw=; b=qxHv0rGK2tVeMw48ki9L66UQWkfjBQ+TaMr8+jEYtv99IyJk8je19nd1fohIO+TJvY jzCECwORCCzx4IRrJVHB/huqwkoNdm2mcWow0+SAfFu0lKDfCFkHGqRUX1U4K7eHgj18 TI70y1PHLZ1gQWIwKTkRCLGY5/DAaftl7+XEkekkFcztWw416awjIBTzFaA/JsfYDzY5 vyzhP0rCx1In+b3n8sQI0yYUBfv7q3F1GFePG/z2fXlMRYBzX6foLlozm7rTQHriSC2i nQnAzQo0mVr9/MgOyPRYPc32444nhHLnQVK7cj7cdbSWUgrXIdwY3W3NXX5i7+XF4LlT INjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MkbkbT4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n16-20020adf8b10000000b002422f5dbfd7sor9868182wra.50.2022.12.06.09.11.09 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 06 Dec 2022 09:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:adf:ff90:0:b0:242:46f1:1de0 with SMTP id j16-20020adfff90000000b0024246f11de0mr10925436wrr.640.1670346669143; Tue, 06 Dec 2022 09:11:09 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-82-54-95-136.retail.telecomitalia.it. [82.54.95.136]) by smtp.gmail.com with ESMTPSA id k10-20020a056000004a00b002365730eae8sm17298534wrx.55.2022.12.06.09.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:11:08 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Amarula patchwork <linux-amarula@amarulasolutions.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Arnd Bergmann <arnd@arndb.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Russell King <linux@armlinux.org.uk>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: imx27: add missing of_node_put() Date: Tue, 6 Dec 2022 18:10:46 +0100 Message-Id: <20221206171049.3316611-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221206171049.3316611-1-dario.binacchi@amarulasolutions.com> References: <20221206171049.3316611-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MkbkbT4e; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related | show |
diff --git a/arch/arm/mach-imx/cpu-imx27.c b/arch/arm/mach-imx/cpu-imx27.c index bf70e13bbe9e..1d2893908368 100644 --- a/arch/arm/mach-imx/cpu-imx27.c +++ b/arch/arm/mach-imx/cpu-imx27.c @@ -28,6 +28,7 @@ static int mx27_read_cpu_rev(void) np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm"); ccm_base = of_iomap(np, 0); + of_node_put(np); BUG_ON(!ccm_base); /* * now we have access to the IO registers. As we need
In mx27_read_cpu_rev(), of_find_compatible_node() returns a node pointer with refcount incremented. Use of_node_put() on it when done. Fixes: 94b2bec1b0e05 ("ARM: imx27: Retrieve the SYSCTRL base address from devicetree") Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- arch/arm/mach-imx/cpu-imx27.c | 1 + 1 file changed, 1 insertion(+)