Message ID | 20240504-pinctrl-cleanup-v2-16-26c5f2dc1181@nxp.com |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2062.outbound.protection.outlook.com [40.107.22.62]) (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 683B13C08A; Sat, 4 May 2024 13:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714828612; cv=fail; b=PXToDImcbk8MwRhoWBoX7fM9CCtB5gRd5A8LBdiTMzR9Ee+tRqo1ZC4oyzdfKeu2+8A3HdkjkHY2nzksJcesVQoUehpBIYT+6OgEmqctl+DQirS7usoMJNDITjjcYfR6e7DKSffvSNDwMWe2LQfIzAgM0Gs8s8/lIda5hPkEQ4M= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714828612; c=relaxed/simple; bh=o6F5l9CsoiURStmJJEE9Qa953QXfjAQBUVSJDbNbaG0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=geURmRg8XFBO0EVXnNcrsKT5y4MR5R7DmKkoLIWttzEg9NU9JLE2eXO39gNtl5/dYg2e0Lt6aqs6ryzrmU0cQLODMCtVB3+IBPVXo6qKdRkwAJ5EuJNunqHxpelp+6SymvINNhc1Z+Q0V6Ed1+Z4OjwuLMuE+oNwx1nSjemp4fQ= 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=hkF9lq/j; arc=fail smtp.client-ip=40.107.22.62 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="hkF9lq/j" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iq0+wWzoQ8QOjJwjhT3U65H2p8s/t/dew5fgj3ZBpZzUk94yZ5xiSQTXDrbvtCsvKitephcf/XzfQs2ZViYgQN5gfd6ViC1nVLrEVKjEmQtDI4l/MsJXIB9Nbl11lNRyFIUpXHNqe9487vJW2J0u2NthW+NgwEvEoDOzbc1p/zC/rNwQTER8ZCEnPsOhweUwo1Z3BsPvJYle71vu8RTC4FvzBKeeKBmkimz6ADvmiRhfBlwz6HKqi5qgB6kSQ00sLNpMBiuILfp4na8qWwd8okkSij5ege9oLWCgBwWWZ/mME405ItQu9locoPpASh1+tFLf8mTXySgGLz31lgnu0g== 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=b8YW68N9lyxeJ9/mVk16q9wzxsh3g7k9BYoR+TfhQy0=; b=UE4qcH8Qe+cAnvJzlJYA4nduogUPkrcB6BJOqMOhNnPn8IiDdbCGoFpdL4StqFnNlceH/+46kN2heoV8Vq8jSzfqVwyLVn8w8uLkokRQbDw5ny+DnsqRNsXWE/5oG93KFp0cxGHLmXyTz7jQsI39SL1i21jFaSrstmClmLbCn1LOH17wXCa18NxKP5h8/5EQNSax2tXAEda3a5T/G/Kh6h0hC6qMrJ8I6Va0KrnV6MdQLiIl+CqLLuJf8YGyrg1b1QKAcDuVcD0m13hywuqt9PIJ141rjv2TbAl4BdEMo/W9C1KzPRsnlAwdGNZLXQkgsy5U9DBnPZpzPCakUyiaIA== 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=b8YW68N9lyxeJ9/mVk16q9wzxsh3g7k9BYoR+TfhQy0=; b=hkF9lq/jMcSmd1vDCP4Xw1FUFal2vtMiBcdMIM9IGtY/RbMqABtrwAJ/XD3hbLK8tTye+IspbuC5y1BpSRyaRYHzAlK6rsUAqHloELbRn+VX1eNkANyQqyLBPRR0toDsqQl3oXPWoUwPEZdh+ye/fqC2fSv8iNNIsw0PwMz2xQU= 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 AM9PR04MB8633.eurprd04.prod.outlook.com (2603:10a6:20b:43c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Sat, 4 May 2024 13:16:47 +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.7544.036; Sat, 4 May 2024 13:16:47 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Sat, 04 May 2024 21:20:14 +0800 Subject: [PATCH v2 16/20] pinctrl: bcm: bcm63xx: Use scope based of_node_put() cleanups Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240504-pinctrl-cleanup-v2-16-26c5f2dc1181@nxp.com> References: <20240504-pinctrl-cleanup-v2-0-26c5f2dc1181@nxp.com> In-Reply-To: <20240504-pinctrl-cleanup-v2-0-26c5f2dc1181@nxp.com> To: Linus Walleij <linus.walleij@linaro.org>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Dvorkin Dmitry <dvorkin@tibbo.com>, Wells Lu <wellslutw@gmail.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Emil Renner Berthing <kernel@esmil.dk>, Jianlong Huang <jianlong.huang@starfivetech.com>, Hal Feng <hal.feng@starfivetech.com>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com>, Viresh Kumar <vireshk@kernel.org>, Shiraz Hashim <shiraz.linux.kernel@gmail.com>, soc@kernel.org, Krzysztof Kozlowski <krzk@kernel.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Alim Akhtar <alim.akhtar@samsung.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Patrice Chotard <patrice.chotard@foss.st.com>, Heiko Stuebner <heiko@sntech.de>, Damien Le Moal <dlemoal@kernel.org>, Ludovic Desroches <ludovic.desroches@microchip.com>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Dong Aisheng <aisheng.dong@nxp.com>, Fabio Estevam <festevam@gmail.com>, Shawn Guo <shawnguo@kernel.org>, Jacky Bai <ping.bai@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Chester Lin <chester62515@gmail.com>, Matthias Brugger <mbrugger@suse.com>, Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>, Sean Wang <sean.wang@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Sascha Hauer <s.hauer@pengutronix.de>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, Dan Carpenter <dan.carpenter@linaro.org>, Tony Lindgren <tony@atomide.com>, Stephen Warren <swarren@wwwdotorg.org> 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 <peng.fan@nxp.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714828815; l=1176; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=ngb8bjYWoY2vP8GroJ6WPcYXu1rPDt13jwjXmDP0P84=; b=DCvLS+tJSjIJOYzv5GBcRPWdyszwIStRArI44CNxG71LlT4DW0wLaiJVWa3krSYbnAQteIYKQ axMlCLkIflgBmSjBIiiZAA++axwuvzMqZXOU/It10tJ/dOb4zf/rLxO X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0230.apcprd06.prod.outlook.com (2603:1096:4:ac::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: <linux-gpio.vger.kernel.org> List-Subscribe: <mailto:linux-gpio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-gpio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM9PR04MB8633:EE_ X-MS-Office365-Filtering-Correlation-Id: 039ec075-bd8d-4c85-d9a6-08dc6c3c7377 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|1800799015|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?/7nQeMJU5DmcMfHEXPODtBRXmEHbvVq?= =?utf-8?q?Py3cUP3+44Y84/4nQL5tdI2ZUgK7bGjIk0MiRheNznJrRDEjITgF/Lmn4wbFMdWBR?= =?utf-8?q?QhA22ez4SH4hu0am/8TEUlwMjc07vWUAOrqbG7LqKt8kda4aGupmBMv1ZOr3MvjfH?= =?utf-8?q?ptAKRD1DHsVcpPw8FKUmfQjp3O5P1MSyiLfupJMEbxcSeX7R5dz1w5y8OoxM0r1Zp?= =?utf-8?q?Bq59dhzwKL94jB88jY/DIWRaho39gWBwsuS4xdRvP/b1Or3RDRiZ6QCzlSa5rjkfn?= =?utf-8?q?t4BjjIZ1QSBSYZuvkca18PO1La20nXBkw4I7i3i+4yM3xndClcCoRzmEShr5tuCE+?= =?utf-8?q?HP5tDNExXbJEEaa/Al6Fx66nTGVriSkwuzL8VoLyDZoVG1CltZidFFg9SUgcAYlqk?= =?utf-8?q?miFum4jkNqndqyv93KatUvkIeTLSB5iE8aNl6H0tH5udDzPbz6Od8aOrgDqoYm3I1?= =?utf-8?q?uarsjlufPxe3agGWc2ZVilLbdNjxQHFBR3y5+7ciVd9QSvrSt7h3ir41LNxQ95ubx?= =?utf-8?q?qQrDQN2Z35LFwPOmTSJur0SSRLcQwVl6ROHqVWjU4io4d2HkuYcLEOsuSuI90Ufpp?= =?utf-8?q?xe25caVkC5FV7KVufuln7prQngKYr+grZoKiyQ51CH4gH94vifvFS7+67wqaeYCBa?= =?utf-8?q?aWKbmvJySvXc6cQpY53Tdf+OQMMUfcWP4lFpY6PDPGlqBFvLdabxiOwQ1y4h+BV6W?= =?utf-8?q?wD2wsLT0fWV+U1mn9876xTBvVxx5M2bo1Up17hThSCDswuzrb3fxXVLSYlFEG3CGE?= =?utf-8?q?Qll+K6aMOrjr9YPaNKJnjWDcwv7pkTkZLDQcZLFUVzoYR5YzyLnDJ7QyFnoWAZHsZ?= =?utf-8?q?lbgD508fJXeiSSk31+oejzSuEARae9rs54oDSxUv0baS+zS25G5S20QNB7BOLHnsZ?= =?utf-8?q?yCB54QZNvph3lFE+EUFpy0BNj5/RBhxfgUUc8rlFf+4uZAzk4O7lR4wcIUV6XB5OU?= =?utf-8?q?Fz/OOPzuaiIeSlT0nxNM/a4Q+yabKC7S/6PXTYEVriwzHst6Yn5wnWDO6VjrkGSz7?= =?utf-8?q?tQNShBp6UlvC6mosOMbeR0pz+THLevcut9DRuGIhzJdBofM/ltO4eoTr4tHMj+0eC?= =?utf-8?q?hCvJrJA417rf8JkkkG1t7dr25o+G/ZIQaGZvDc7smCWVq/K9haCF43nuNzA15PB40?= =?utf-8?q?7PKFFRRkDOLnXCMRgDz/HSGftI+wcu585dD34ZMiRp7AtZMC+mDZlPdSColcJ/4sG?= =?utf-8?q?9BXLPcvUXzQsKwUJCwkO08YaTgfI5O68z8KjpoEGi1UtIi+OXjPCzgqXJhk6RsSMp?= =?utf-8?q?vuQCowYUnktsfGC6paVwwYhmH4hS17ihsyg=3D=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)(1800799015)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?pGqNSNdOHCOW44dy4E/8KywqNsmV?= =?utf-8?q?eRvA3TcYNxK3TYMlKe6Zt/HRkKvwmGAjhoeCJrl1yX9ccLgS1x0EoTR+D7uLkK8SN?= =?utf-8?q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e/n3qClO51blW/+4MoicEFMFAqRmNFxGfDOT8eNkT4gO7ldEkt9nL9z?= =?utf-8?q?Y4rGHUcV4lfZZug32M+u/LWtBbGVsTcxoh5vuHAj6/ZgvI53LwS1EHOyl/uWXE4nU?= =?utf-8?q?hUF+s5CN28t6PmuDoZTJTpswoeUxLiMJYPeyYue0ZPCkcalEgnkmwUJMnMYomNv5b?= =?utf-8?q?o4ovKIw9GaoeI/64NrCbMO5YBDJJYRsF31lMYEfSljNcxuRAUjLsf3K+499NVesNU?= =?utf-8?q?QWRfnibHFGDRLDhbmGZfDM0cJPufIXwzDSxjimTkOWcmuJEhIoCFiwOkGgfvI0Jwe?= =?utf-8?q?AYDn8pjQ2xIESH/2TD2F5IY30AGkZidjiWuYgi1z9KGg3Oa5S00amnBXFNSZM9gD2?= =?utf-8?q?YNT4ssxs+PYsTHMIQu8t1xA5dFMnuKkauWO/xuemjAKOsbeNuchE4bpbOLnsR2RSv?= =?utf-8?q?g6WDWVW3CFv9jH5ds/MVjeXERpODpXqL6ufIcNCd3mxLu559wz8+NxcdFtiB43bIZ?= =?utf-8?q?MOeZmOfKklXxniTVR2AGCXU+1uqepKaX+AcGr+fLmG21jzRcuq60l3l98y3cuPmFh?= =?utf-8?q?HCzZOaoEXeOt?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 039ec075-bd8d-4c85-d9a6-08dc6c3c7377 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2024 13:16:47.1839 (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: shY0dafUZUsi2/PfSPmiPNkIGEOpXTthpisY1rGu+XtACuv/H167vsA0VUdr90Fmv7gkwOa2dZP59lS30mxyRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8633 |
Series |
pinctrl: Use scope based of_node_put() cleanups
|
expand
|
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm63xx.c b/drivers/pinctrl/bcm/pinctrl-bcm63xx.c index e1285fe2fbc0..59d2ce8462d8 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm63xx.c +++ b/drivers/pinctrl/bcm/pinctrl-bcm63xx.c @@ -67,7 +67,6 @@ int bcm63xx_pinctrl_probe(struct platform_device *pdev, { struct device *dev = &pdev->dev; struct bcm63xx_pinctrl *pc; - struct device_node *node; int err; pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); @@ -94,12 +93,11 @@ int bcm63xx_pinctrl_probe(struct platform_device *pdev, if (IS_ERR(pc->pctl_dev)) return PTR_ERR(pc->pctl_dev); - for_each_child_of_node(dev->parent->of_node, node) { + for_each_child_of_node_scoped(dev->parent->of_node, node) { if (of_match_node(bcm63xx_gpio_of_match, node)) { err = bcm63xx_gpio_probe(dev, node, soc, pc); if (err) { dev_err(dev, "could not add GPIO chip\n"); - of_node_put(node); return err; } }