Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp447924lqm; Wed, 1 May 2024 05:57:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1EUHq9wmfqAAwgCwxN5RiS2OjDzL35f3iKMtFsdloJuIu5a1nYOC5CGIasP/G8E3g7BlZaSyhSbSbD2s53qUpYhidqJSzcqyrCxVR5g== X-Google-Smtp-Source: AGHT+IEAgjuMQ+t1nYt2kV1FMSGTVrKSgdmuKE/1FkZYHmbtlifvd7/Fhnw07StaqTDNeOHZBeKz X-Received: by 2002:a17:902:f7c2:b0:1ec:4adc:4154 with SMTP id h2-20020a170902f7c200b001ec4adc4154mr1990246plw.23.1714568262637; Wed, 01 May 2024 05:57:42 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o18-20020a170902d4d200b001eb4a71c0ffsi8501806plg.471.2024.05.01.05.57.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=K2kLC9l5; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-165291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5414CB23B0F for ; Wed, 1 May 2024 12:54:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9704912DDB2; Wed, 1 May 2024 12:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="K2kLC9l5" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2082.outbound.protection.outlook.com [40.107.8.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76FFD12BEAB; Wed, 1 May 2024 12:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568030; cv=fail; b=p2GzLWLvo5oCwI/hg+F1TXN2EaQDWH1uZii22Himd9Lz9qG+iWsQD3e9V9qkv6OAurGKUbcGsCgNpRvrxMw00A06XvPRQ24w+0cNUQqm8g9f0Gw8SBoBrc5c/gZtx2Y6Kk1AWe70SD9qotOA8uhhQilvqUfmr0RSbur3mrh9rbI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568030; c=relaxed/simple; bh=bSa1Qkf14OuNaO5RzY4Gu3WlPihsAEm1/Tvc41VbvDI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=q/YJMqRQtiEH8nON6vYqvUxMwhTBSsdlbA6QRtiXX/LeCh2GkEMa0+aVngkq3H30mZ48Hcae+rxyciUQ07ewgWhdBeOm7kSg72+Thlgzv7jYO46W/juj+2ovjaoU8WufIUhZGV3iD5jmxBFuLUMO/wz3rB5q01m6IAUClANEtak= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=K2kLC9l5; arc=fail smtp.client-ip=40.107.8.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BrKJRJhrAXXi4i/+hJ1j9UdpHP6FNcrQn0czFC9LXFQmQ1uSkEB7GR3LWWmZMgGTG9LkBvN7vksBwqUi1t/QTes918QjXcjCE/6cRCeAYzaTCZSxDkNRcGzUuD/qXqqFXP9hr5uxDO2qZS7mZ7mx0v94SZjtryETWDNSr2AG42069jK+x8HFnhgd8U7osV0ZGPdeTUeHxj78Z8DavGulcyaYMngCb4BcJ23r1+dR5pkUa9DPphAqku6QxRiBqQTuqrkPzawnpi9lUuPtqvv7mRQKnHrAaJqwkrWExgVJxUBAWpPnvHfFRoV2I3W3u5DC7Kr97vXliWw/mc/CuVcLlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R/HN0uRuWCWJNe64LQrS5DariOLht/eVTftGm18bK78=; b=l6RwEFZACPoVhJluOHFVBI7404cwKjbhdcTkQfV7s+pXF2DvE0zDcVrPbV7STu+icsFCwieWq7YY3327y8n5uESrBn11x6r0r0eA2C2fHn+x8leJHCLWWhQnWcsrS9U+nMBoW/7mrxO3PKu7NCngvfa9KjLorlxmgzeU/qckET+J+VjrtjxWY5+H1Mq7nUNfAMuNmIC5/HQ0Hm4MV3EKcIMZ/KxG5ie2JD1eJexyLfNFp4kpqO4yzY1Zunvv8rkG9MRXONWdLaZleOENz4H7qKalMYyuIdf1r/hVjxWOrt0qdc5pZdjZxgFE5rhzrsb5NavX5aozKi3DI7qmjB2wtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/HN0uRuWCWJNe64LQrS5DariOLht/eVTftGm18bK78=; b=K2kLC9l5lAUrG/78F6bbfqzg4obvd9TrGhg4Nx1bTHYElLOBWA7zy41Lor9jbtQ6E3G83iXxQ8YpoojMX3umsHMeZ4p9PVVKqDUCurBTX9NXcLIdMk1nwHUcnl5rhDhNsuSs4WQQh1lDQSshFtTxAlIzsBmTJfu0u9Vt4XXiMVs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBAPR04MB7432.eurprd04.prod.outlook.com (2603:10a6:10:1a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Wed, 1 May 2024 12:53:45 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7519.031; Wed, 1 May 2024 12:53:45 +0000 From: "Peng Fan (OSS)" Date: Wed, 01 May 2024 20:56:18 +0800 Subject: [PATCH 20/21] pinctrl: aspeed: g5: Use scope based of_node_put() cleanups Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240501-pinctrl-cleanup-v1-20-797ceca46e5c@nxp.com> References: <20240501-pinctrl-cleanup-v1-0-797ceca46e5c@nxp.com> In-Reply-To: <20240501-pinctrl-cleanup-v1-0-797ceca46e5c@nxp.com> To: Linus Walleij , Thierry Reding , Jonathan Hunter , Dvorkin Dmitry , Wells Lu , Maxime Coquelin , Alexandre Torgue , Emil Renner Berthing , Jianlong Huang , Hal Feng , Orson Zhai , Baolin Wang , Chunyan Zhang , Viresh Kumar , Shiraz Hashim , soc@kernel.org, Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Geert Uytterhoeven , Patrice Chotard , Heiko Stuebner , Damien Le Moal , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Sascha Hauer , Andrew Jeffery , Joel Stanley , Dan Carpenter Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714568179; l=1515; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=h0a9LV3oYSEF4ccWiOP3By2vye9Q4bNslLUZUu2GcUk=; b=SXVAnIHFcdSsBSSywnFDOPtR6P41Bx05UTk5YENmkF0qjYhIsrg7zH8yQPwm7asnMsPxjxU9Q 2b97znrgTqNAgUnmN2vMF5Tp2B1upQ99/QV5V2XBdTEDCoOEv2AncJh X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0064.apcprd02.prod.outlook.com (2603:1096:4:54::28) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBAPR04MB7432:EE_ X-MS-Office365-Filtering-Correlation-Id: 2309f409-67c7-41f7-b48a-08dc69ddbc82 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|7416005|376005|366007|1800799015|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?K2hxQVowSG9Hd1kvV2RyYk9wTFFRL29oNVB2blNtdHJFS1FtNjZYMHJTN1pD?= =?utf-8?B?LzFuYnMvRnpYSG41dTEzTzRXeko5aXZrMkFZN3VSR2d1ZUJCZ3MxRnJsaGwx?= =?utf-8?B?V2luVWtvSVh4T3hxNHlnUjd1b0JxOFQ0MnRvQkovY2hRSzNVSXQ2V01Zc0tS?= =?utf-8?B?dHFnVThQWTlzaWp3bmFwNVQrRUVQQVRERWJrVEdIMnBpYVlpTE45M0FWSjY0?= =?utf-8?B?YmZKL25CYVlwWGxMUzE2MEIzOEh5NENjLzF6eGNRcGtrNXp2NFp1aWJxVVdw?= =?utf-8?B?aDJyZG5TK0E1QTJVblY5YjRyVVE3SVdNcEtaaHBxcEZQWGtwUlV0c0JsbVdQ?= =?utf-8?B?cWp4aUIwaXB6bEY0MmpvRkIzOGtBYnYvU1phdmE1MFRVQVVRMklWMFhsdzhV?= =?utf-8?B?cHZTK2M3T0tFUmg0cklXajNSMFg0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ZwejZZMktnUUhHWHRBdFdtTUtlcmRubjhYUjRzWm93VUFE?= =?utf-8?B?V1lWU1pWYlRneThKQWFqL0g1MVlyMVBkNDZhZjJhVEM0R25HbWR3UStFU1JG?= =?utf-8?B?enppYUxOUUJaU2FrclA2ZERCVm9jaUZrMlRPUEw2QUZQTG9jTk9XVnZhS0or?= =?utf-8?B?UTdjTzFoOFdLNldaMmxwSDJNbkNVZldqRVJrS1J1WlRmZFNWbTBwbEpLaFQ4?= =?utf-8?B?R2hINUUxeTNRK3dQZ1lIcWY1eFl3U2o4RjlMcDJJSGVORkNQVE5teXY4STYr?= =?utf-8?B?ZGlMSlFCTE14eHFYZllzZkh6Z3ZRZ1c0WXR6VnpTV0ZFRGNrUnNoWEhNQUI4?= =?utf-8?B?L1hLZjNBd096U1B3QXdrYzAxZzBEeVpaNGJ5cDhaTERCRTRCbXhaREpFNGE4?= =?utf-8?B?NS9nMUliTkZ5T3IzbGxLWjVGSDBiZGdNeWtETFhWMnNuelVhR1hWUkYvK3JK?= =?utf-8?Q?TsEGHqdtKPsXsuXIpL38Xv98n/eFhraku9fPs=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(7416005)(376005)(366007)(1800799015)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dDA3MDMrL2FXU0NPLzJ3Q3JYQjBmWVJWWmdrdEJ5NUNNSEh5MjF6dkUxMnl3?= =?utf-8?B?TmVHV2l6WmVLdE0vRlkwL1hGbjlraTFGUkRoTlM3TlZ5Q2txQ0x3OXVZcy9B?= =?utf-8?B?ZUE0TVFFUHV6TmJVZ2p4TTBYNlRQS3UyYXppaDlSVldpcFJSZWNON2FyT2U1?= =?utf-8?B?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UZDR5eEY2WjhlYkRL?= =?utf-8?B?RnQyWndPSGtrUEZHcExHOXRtMFZaWE94RmRqeFB0UkpqZzRuU085TjZhckFP?= =?utf-8?B?WGZzdHRDejFPZ2dDTm8wc1pHQnQ3ZENoekplbGxkUGlhTndVUi9hYUZsZitY?= =?utf-8?Q?rJmSr/hXbAjZa+tYu/cqgQHtJ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2309f409-67c7-41f7-b48a-08dc69ddbc82 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 12:53:45.2588 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: c7Hq6vl1hoEdKBQfGyXFYIZ+fqMoLhYMh1DhSQi9POJ/KCDU7AREbfyGyyrtUObiPRdCGCkfUxBwOXpIskS6rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7432 From: Peng Fan Use scope based of_node_put() cleanup to simplify code. Signed-off-by: Peng Fan --- drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c b/drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c index 5bb8fd0d1e41..61fbfddb5938 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c @@ -2629,14 +2629,13 @@ static struct regmap *aspeed_g5_acquire_regmap(struct aspeed_pinmux_data *ctx, return ctx->maps[ip]; if (ip == ASPEED_IP_GFX) { - struct device_node *node; + struct device_node *node __free(device_node) = NULL; struct regmap *map; node = of_parse_phandle(ctx->dev->of_node, "aspeed,external-nodes", 0); if (node) { map = syscon_node_to_regmap(node); - of_node_put(node); if (IS_ERR(map)) return map; } else @@ -2648,7 +2647,7 @@ static struct regmap *aspeed_g5_acquire_regmap(struct aspeed_pinmux_data *ctx, } if (ip == ASPEED_IP_LPC) { - struct device_node *np; + struct device_node *np __free(device_node) = NULL; struct regmap *map; np = of_parse_phandle(ctx->dev->of_node, @@ -2660,7 +2659,6 @@ static struct regmap *aspeed_g5_acquire_regmap(struct aspeed_pinmux_data *ctx, return ERR_PTR(-ENODEV); map = syscon_node_to_regmap(np->parent); - of_node_put(np); if (IS_ERR(map)) return map; } else -- 2.37.1