Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp444289lqm; Wed, 1 May 2024 05:49:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNRiM8Vws2+gFrd1eL9rIn0ckpRADqWNUJMX3qgvErOdPaJ+puukM/ylsrMCCt9+3jo12oyz5/EqHfiOYpdOu0TtRITG3FcujHgQfybQ== X-Google-Smtp-Source: AGHT+IHoZfJqbrRdG9PlPWhRNzO/zRQeAyaW/wa1y9z5PI72NVHG67C2eyV5vGlCZT3yCfKvPmKT X-Received: by 2002:a05:620a:29c5:b0:790:fc4a:4fea with SMTP id s5-20020a05620a29c500b00790fc4a4feamr2828632qkp.36.1714567762983; Wed, 01 May 2024 05:49:22 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id xy20-20020a05620a5dd400b0078f0f568b6dsi29432070qkn.649.2024.05.01.05.49.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EmmRaZXL; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-165271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165271-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A5C641C2169C for ; Wed, 1 May 2024 12:49:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D85378565D; Wed, 1 May 2024 12:49:16 +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="EmmRaZXL" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2064.outbound.protection.outlook.com [40.107.6.64]) (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 B685A5337D; Wed, 1 May 2024 12:49:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.64 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714567755; cv=fail; b=aClHK9hGL38xU84UPLBYsWxHM35KleI6cViWHHIoCxnj9YJpveAVjD0bxij+sSriymwXQnRO0uGzS+/dlHkwYMF+V2QMv7GN/A+rXwQNOde5h2tOqrcznQwJxOz889QWnPyCaF3wbxRWRp3/7bL03lK++f9NOsuE5sF4syvQZug= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714567755; c=relaxed/simple; bh=LSAn+p8fmAs99DQTsjCYGuuV7Smm9Rd2CDUVvdFN+HA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=h+Io9IrlBiBgD0HCgxCayiE//sQADfNfteftHRIfq5crGQXVp2g3cTh2xpXicbURSA/U8DpHXqT5Y1jGxIsE1pU7HpYMX0uPRr97N6PfE8CGnwVgGn+hiOAc7fOup4rdCkvmg0uomM8T2Il172WipGq73HobUZMVk5DF9/jQFkw= 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=EmmRaZXL; arc=fail smtp.client-ip=40.107.6.64 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=oeu47Q+dPv1DPnRVGtc6IiNSPWuUWczHuMJIvx/20XaKHr4tGZ7eStixVLJKlt6k9gXBP+1/PR67tQAMiDlnrHAlpuNWxKdDAF6bDS1NzZ8GHl1UN6f5afpgN3LX7jWR7JOMnH90w8dA5VG5BzgZ7d9lSUkmbJ04GoIHryivbP1QDu3EGjRLivniGmriEkbOKZoWfCn3tAUjffx1OT3WstUpQs8VmUWCQSxdnmuFrLNmrmmrmXe6gsHNPwsG68kwa/8wPslY1o8lpxHDaO+gCofqCdwUNhwr1ov6l8sn1NHkf9pkclPfa2sPQ93DOCz8a9mhRyey486T8N+tbok7sA== 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=ZWbaOnhitppwCU5btaK/2yH59NAaiI69tzBZ/+l5Sls=; b=GRlchT30TLUK57xGbReuKjfzmTSUr9s7OMLTNM7oX8VHditGMqb655tXxxqqGuLO5PZF+kd4uUDc7COHYN/Fk8oLFjkbpZiinCR/rOr2bv8lH6pty5oKDQuQ9v8pIvv5Cn4JBHrvi97mZAf/9d/3xSP7Ts+oJ+6xIuaDRxld72sDAHLRVtTauuMJtY/X57HpiDowhh2Y6D30He09nz2/ShwRJ9/KMhTPKnX1TOBeC03VrO9l/EtbFnb5P+wWOCLa2ClWGa3CcUKgsSnXuz41Cs9e0ERzmkq/AKfmRe/AsLaD65Js+0xvlgf/rzIyvWbx9a1mjSzZtKNg40Iu9vuyAA== 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=ZWbaOnhitppwCU5btaK/2yH59NAaiI69tzBZ/+l5Sls=; b=EmmRaZXLTcmyZ8/Gzn7BfXWIGm50cFWw1ABS/y4xR5FZ0rFwDj5ScpJilmo29x49sCMfAzTWuXKku97P0fc2ra9ASs/2muNOJzKA7Fev155/6SxjfM8g9LIw9T/5jyiKaZSzT28wJ0+x/A2r7loWZu3KbtlansoFo3F/zca20J8= 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 DB9PR04MB9284.eurprd04.prod.outlook.com (2603:10a6:10:36c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36; Wed, 1 May 2024 12:49:11 +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:49:11 +0000 From: "Peng Fan (OSS)" Date: Wed, 01 May 2024 20:56:01 +0800 Subject: [PATCH 03/21] pinctrl: sunplus: Use scope based of_node_put() cleanups Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240501-pinctrl-cleanup-v1-3-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=1303; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=+m9hOUks1zLp1UolZzmwZ7jTtIojf5UqsPjaqQIsEwQ=; b=IZjMe94P6fYw86SmgQeVTPliGzwM5/iZVmO4VECeHSp9Ch0ktEbWrPRvuWTFTkBwPt2Tg4ElP txogWLr0hpKCU4Qnc8bC8XisL27TbpzKeibh6Ju1lkhyT89QOJTe+0p 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_|DB9PR04MB9284:EE_ X-MS-Office365-Filtering-Correlation-Id: 065f0460-04e2-428c-56a7-08dc69dd1913 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|1800799015|376005|52116005|7416005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dWgxa29RSWQrb1I4M1FZKzIweXZqakNKUGNjc3ZMQlhzbEZEZU9TMi9WTmJy?= =?utf-8?B?TzZFdWRvV3hZMlFDTWZ4SjJQcHhrVVhnWHBEN010OXNzS2tacDc5SkhtaG1r?= =?utf-8?B?NXU2WjhGL1BscmdpUGUvZy9tRUNBV0VJU3FPczd0MW1QN2grZzU0TkwzYURo?= =?utf-8?B?Q1BUbXZwcmpXYmY1QnRWbm16dHBRcWJzMWpMb29BaGhBRXdzQmczemFsRnRQ?= =?utf-8?B?WkczaFNscGlXU2J6ckNBSU9lK1NJTEwxem5odUVHM3I1MWVKZldjVTdWUFRN?= =?utf-8?B?S2ZxaWY1b05rTHEzN2ViMmk0RGM4QUUzOURVancrb3JFcWo3RnVJUEVwc0Rm?= =?utf-8?B?ZUhHZlJSMXJ3cjlTbjZnTHZibzFoYWlkbDc5L0hjM2FDWTZxTnQrd05vR24v?= =?utf-8?B?S0pwWEhXS2Qrak5DTlZyaGpLcXpTMXdORW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UpZdzg2VnFleExIN1VjNVltNkphM0JqdnVaYysy?= =?utf-8?B?ZXNabEwzZFJVdWRXdmw5RmhtWUNzSm9Gczl3aU5tcXFPbU5hdVh3ekJCVjRH?= =?utf-8?B?azNPbElOUEpYalBBSlVPenVQMTYvY1VhQ3Bsc1VoTlVCc2RETFc1SmtIdXkr?= =?utf-8?B?NVhsSDBGWWIyOS9LN1FaM0JpN2hxdWl2MWRYNWRWaElEaHprY1l0NzRZTksz?= =?utf-8?B?YzZXbTcxSDBFQjZGVnFQeTI2dGt1aWppK0RvU0pMTVp2ZUg1VVZldktzbTRk?= =?utf-8?B?K0ZQL2ZnRzFINTFTS1lnRU5jS2pmUEpiVFZHYmpmZHRiVzMzSEJaeXJCL0R1?= =?utf-8?B?NWRQamloQ2xKeC9zcXhScWQvNjFVamlXd294bDJGem50ZHRkMFlOWlM5cWtx?= =?utf-8?B?Mnc3OXY0OWU1aTB0MnpQM3lMUkRqb0hQc0xkM1dXME9PMkJJWkFoWlFHdnR2?= =?utf-8?Q?3UCC1vhaTalv4F3aFfhdRU5kwAIVYGktXVNPU=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)(1800799015)(376005)(52116005)(7416005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RncyM2k1NklpYnNOWUdwTWtuVFN3ZFl3QUxRYmJqbTZDSGd6RzQ2dHBWU05C?= =?utf-8?B?MnNwcDAvZG9CNEZQd1pIbDFiWnJlUnAyYU1yaFdiYUVIMm1ISk5KUG0xb0Fp?= =?utf-8?B?S0ZYR2ltelpXVk5ibEhmNVo5OUd4aG9UMWJTUE13dHRJZVp3OGxSVEdLNGJJ?= =?utf-8?B?S3k2NjEwcH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c5bTF4UCtwcWdxZERMTGxUakVPWVRMQVJFc3J0?= =?utf-8?B?SVZ2RUJYZmptNTBROW5ISTNCOXFlaENpWHpaVis5WHFENFlYVXBZTzk5aVE0?= =?utf-8?B?bHJyc0xyb0wycGFkbXVYNFN6NGhSLzdmT2x6RlpFa3MzUUZlbFFCL0tWNG85?= =?utf-8?Q?PpH8nE3WoGiTxUR1vvJ9wtWDC?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 065f0460-04e2-428c-56a7-08dc69dd1913 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:49:11.0055 (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: kvq5FEOPiyJ+1kQ64iVQwxsQD3eMnMe+tmTitUmgyqQLUOxYlxzgOM82g+xPwvaQXsBROZvmNsKkMC2YFHNfdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9284 From: Peng Fan Use scope based of_node_put() cleanup to simplify code. Signed-off-by: Peng Fan --- drivers/pinctrl/sunplus/sppctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/sunplus/sppctl.c b/drivers/pinctrl/sunplus/sppctl.c index ae156f779a16..604256ec9079 100644 --- a/drivers/pinctrl/sunplus/sppctl.c +++ b/drivers/pinctrl/sunplus/sppctl.c @@ -823,7 +823,7 @@ static int sppctl_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node int nmG = of_property_count_strings(np_config, "groups"); const struct sppctl_func *f = NULL; u8 pin_num, pin_type, pin_func; - struct device_node *parent; + struct device_node *parent __free(device_node) = NULL; unsigned long *configs; struct property *prop; const char *s_f, *s_g; @@ -964,7 +964,6 @@ static int sppctl_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node } } - of_node_put(parent); dev_dbg(pctldev->dev, "%d pins mapped\n", *num_maps); return 0; @@ -973,7 +972,6 @@ static int sppctl_dt_node_to_map(struct pinctrl_dev *pctldev, struct device_node if ((*map)[i].type == PIN_MAP_TYPE_CONFIGS_PIN) kfree((*map)[i].data.configs.configs); kfree(*map); - of_node_put(parent); return -ENOMEM; } -- 2.37.1